JavaCompilerCore/examples/pl_usecases/OL2.jav

21 lines
272 B
Java
Executable File

import de.dhbwstuttgart.typeinference.Menge;
class OL2 {
Integer m(Integer x) { return x + x; }
Boolean m(Boolean x) {return x || x; }
}
class Main {
main(x) {
ol;
ol = new OL2();
y;
/* y = new Menge<Integer>(); */
y.addElement(ol.m(x));
}
}