JavaTXCompilerInJavaTX/test/strucTypes/StructuralTypesSimple2.jav

20 lines
167 B
Java

class A {
A f1;
A f2;
mt1(x) { return x; }
mt2(x) { return x.feld ; }
mt3(a,b,c) { return a.add(b).sub(c); }
}