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