JavaTXCompilerInJavaTX/test/strucTypes/StructuralTypesSimple.jav

22 lines
165 B
Plaintext
Raw Normal View History

2017-03-15 11:01:42 +01:00
class A {
2017-03-15 21:25:48 +01:00
A f1;
A f2;
2017-03-15 11:01:42 +01:00
mt4(a,b,c) { return a.add(b).sub(c) ; }
mt1(a) {return a; }
mt2(a) {return a.f; }
mt3(a) {return a.add(); }
2017-03-16 16:26:59 +01:00
2017-03-15 11:01:42 +01:00
}