33 lines
714 B
Java
33 lines
714 B
Java
import java.lang.String;
|
|
import java.lang.Integer;
|
|
import java.lang.Double;
|
|
import java.lang.Boolean;
|
|
//import java.util.Vector;
|
|
|
|
|
|
public class OL {
|
|
|
|
java.lang.Double m(java.lang.Double x) { return x + x; }
|
|
java.lang.Integer m(java.lang.Integer x) { return x + x; }
|
|
java.lang.String m(java.lang.String x) { return x + x; }
|
|
java.lang.Boolean m(Boolean x) { return x; }
|
|
|
|
// if the class contains just this method, then correct BC will be generated.
|
|
// But if another methods are contained then the generated BC is not correct
|
|
// m(x) {
|
|
// //x.add(1);
|
|
// x.addAll(x);
|
|
// return x;
|
|
// }
|
|
|
|
}
|
|
|
|
public class OLMain {
|
|
|
|
main(x) {
|
|
var ol;
|
|
ol = new OL();
|
|
return ol.m(x);
|
|
}
|
|
}
|