forked from JavaTX/JavaCompilerCore
modified: ../../../../../resources/insertGenericsJav/TestTwoArgs.jav
Typen korrigiert
This commit is contained in:
parent
60d5da6f24
commit
5058315a1b
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user