forked from JavaTX/JavaCompilerCore
e6a528704a
Zusätzlich wird die Relation TypVariable Method und TypVariable Return hergestellt
56 lines
435 B
Java
56 lines
435 B
Java
|
|
|
|
|
|
class Main {
|
|
main () { return new A().mt(new MyInteger() ); }
|
|
}
|
|
|
|
|
|
class A{
|
|
mt(x) { return x.feld; }
|
|
}
|
|
|
|
|
|
class MyInteger {
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
class Main {
|
|
mainI () { return new A().mt( new MyInteger() , new MyInteger() , new MyInteger() ); }
|
|
mainL () { return new A().mt( new MyList() , new MyList(), new MyList() ); }
|
|
}
|
|
|
|
|
|
class A{
|
|
mt(x,y,z) { return x.sub(y).add(z); }
|
|
}
|
|
|
|
|
|
class MyInteger {
|
|
|
|
}
|
|
|
|
|
|
class MyList{
|
|
|
|
|
|
}
|
|
*/
|
|
|
|
|
|
|