JavaTXCompilerInJavaTX/test/strucTypes/StructuralTypesSimple2.jav

17 lines
156 B
Plaintext
Raw Normal View History

2017-03-16 16:26:59 +01:00
class A {
A f1;
A f2;
2017-03-22 16:18:37 +01:00
2017-03-16 16:26:59 +01:00
2017-03-19 11:41:22 +01:00
mt1(x) { return x; }
2017-03-16 16:26:59 +01:00
2017-03-22 16:18:37 +01:00
//mt2(x) { return x.feld ; }
2017-03-16 16:26:59 +01:00
mt3(a,b,c) { return a.add(b).sub(c); }
}