forked from JavaTX/JavaCompilerCore
modified: ../../../../../resources/insertGenericsJav/TestTwoArgs.jav
Ergebnisse als Kommentare eingefuegt.
This commit is contained in:
parent
29f654279b
commit
60d5da6f24
@ -1,21 +1,26 @@
|
||||
public class TestTwoArgs {
|
||||
//A
|
||||
a;
|
||||
|
||||
//<A1> A1 -> A1
|
||||
id(b) {
|
||||
var c = b;
|
||||
return c;
|
||||
}
|
||||
|
||||
//<B extends A> B -> A
|
||||
setA(x) {
|
||||
a = x;
|
||||
return a;
|
||||
}
|
||||
|
||||
//<C, D extends C> (C,D) -> C
|
||||
m(x,y) {
|
||||
x = id(y);
|
||||
return x;
|
||||
}
|
||||
|
||||
//<E, F extends A> (E, F) -> E
|
||||
main(x,y) {
|
||||
return m(id(x),setA(y));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user