forked from JavaTX/JavaCompilerCore
30 lines
479 B
Java
Executable File
30 lines
479 B
Java
Executable File
import java.util.Vector;
|
|
import java.util.HashMap;
|
|
|
|
public class TestSimpleClassesWithBoundedGenerics<T extends java.lang.Number> {
|
|
|
|
public ma(T x) {
|
|
return x;
|
|
}
|
|
}
|
|
|
|
class A {
|
|
|
|
public m1() {
|
|
x;
|
|
x= new TestSimpleClassesWithBoundedGenerics<Integer>();
|
|
return x.ma(3);
|
|
}
|
|
|
|
public m2() {
|
|
x;
|
|
x = new TestSimpleClassesWithBoundedGenerics<Double>();
|
|
}
|
|
/*
|
|
public m2() {
|
|
x;
|
|
x= new TestSimpleClassesWithBoundedGenerics<Double>();
|
|
return x.m(new Double(3.));
|
|
}
|
|
*/
|
|
} |