JavaTXCompilerInJavaTX/test/strucTypes5/ConvertTest.jav

31 lines
350 B
Plaintext
Raw Normal View History

2017-05-10 10:23:51 +00:00
class Main {
main () { return new A().mt( new MyInteger(), new MyInteger() , new MyInteger() ); }
}
class A {
mt(x,y,z) { return x.sub(y).add(z); }
}
2017-05-11 12:32:19 +00:00
interface TVar_5 < TVar_16, TVar_15 > {
TVar_16 add ( TVar_15 x);
}
2017-05-10 10:23:51 +00:00
2017-05-11 12:32:19 +00:00
class MyInteger implements TVar_5<MyInteger,MyInteger> {
2017-05-10 10:23:51 +00:00
2017-05-11 12:32:19 +00:00
MyInteger add( MyInteger x );
2017-05-10 10:23:51 +00:00
}
class MyList {
}