2018-07-18 15:34:49 +02:00
|
|
|
import java.lang.String;
|
2018-04-11 13:55:32 +02:00
|
|
|
import java.lang.Integer;
|
2018-06-01 16:57:35 +02:00
|
|
|
import java.lang.Double;
|
2019-06-13 14:01:32 +02:00
|
|
|
import java.lang.Boolean;
|
2019-10-22 16:44:38 +02:00
|
|
|
//import java.util.Vector;
|
2018-04-11 13:55:32 +02:00
|
|
|
|
2018-05-30 00:27:20 +02:00
|
|
|
|
2018-08-08 14:33:31 +02:00
|
|
|
public class OL {
|
2018-05-30 00:27:20 +02:00
|
|
|
|
2019-12-23 11:25:07 +01:00
|
|
|
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; }
|
2019-06-05 10:21:25 +02:00
|
|
|
|
2019-06-13 14:01:32 +02:00
|
|
|
// 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
|
2019-10-22 16:44:38 +02:00
|
|
|
// m(x) {
|
|
|
|
// //x.add(1);
|
|
|
|
// x.addAll(x);
|
|
|
|
// return x;
|
|
|
|
// }
|
2019-06-26 12:16:47 +02:00
|
|
|
|
2018-06-01 16:57:35 +02:00
|
|
|
}
|
2018-12-04 15:01:50 +01:00
|
|
|
|
2018-08-08 14:33:31 +02:00
|
|
|
public class OLMain {
|
2018-05-28 16:07:29 +02:00
|
|
|
|
2019-04-27 15:44:21 +02:00
|
|
|
main(x) {
|
2018-05-28 16:07:29 +02:00
|
|
|
var ol;
|
|
|
|
ol = new OL();
|
|
|
|
return ol.m(x);
|
|
|
|
}
|
|
|
|
}
|