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