modified: ../../../../../resources/insertGenericsJav/TestTwoArgs.jav

Typen korrigiert
This commit is contained in:
pl@gohorb.ba-horb.de 2023-02-13 21:20:40 +01:00
parent 60d5da6f24
commit 5058315a1b

View File

@ -1,27 +1,29 @@
public class TestTwoArgs {
//A
public class TestTwoArgs //<T extends AS, AS extends Z, Z extends AN, AN extends AG, AG>
{
//AS
a;
//<A1> A1 -> A1
//AN -> AN
id(b) {
var c = b;
return c;
}
//<B extends A> B -> A
//T -> AS
setA(x) {
a = x;
return a;
}
//<C, D extends C> (C,D) -> C
//(AG,Z) -> AG
m(x,y) {
x = id(y);
return x;
}
//<E, F extends A> (E, F) -> E
//<AI extends AN, AH extends T> (AI, AH) -> AG
main(x,y) {
return m(id(x),setA(y));
}
}
}