JavaTXCompilerInJavaTX/test/strucTypes/StructuralTypesSimple3.jav

21 lines
232 B
Plaintext
Raw Normal View History

2017-03-22 16:18:37 +01:00
class A {
A f1;
2017-03-29 11:55:19 +02:00
f2;
2017-03-22 16:18:37 +01:00
2017-03-29 11:55:19 +02:00
mt1(x1) { return x1; }
2017-03-22 16:18:37 +01:00
2017-03-29 11:55:19 +02:00
mt2(x2) { return x2.feld_von_x ; }
2017-03-22 16:18:37 +01:00
2017-04-03 02:34:43 +02:00
mt3(xaver,y,z) { return xaver.sub(y).add(z); }
2017-03-22 16:18:37 +01:00
mt4(x,y,z) { return x.f.add(y.sub(z,x)); }
2017-03-22 16:18:37 +01:00
}