JavaTXCompilerInJavaTX/test/strucTypes5/FieldTest.jav

56 lines
435 B
Plaintext
Raw Normal View History

class Main {
main () { return new A().mt(new MyInteger() ); }
}
class A{
mt(x) { return x.feld; }
}
class MyInteger {
}
/*
class Main {
mainI () { return new A().mt( new MyInteger() , new MyInteger() , new MyInteger() ); }
mainL () { return new A().mt( new MyList() , new MyList(), new MyList() ); }
}
class A{
mt(x,y,z) { return x.sub(y).add(z); }
}
class MyInteger {
}
class MyList{
}
*/