JavaCompilerCore/bin/mycompiler/test/generics/TestSimpleClassesWithBoundedGenericsNegative.jav
2013-10-18 13:33:46 +02:00

17 lines
249 B
Java
Executable File

public class TestSimpleClassesWithBoundedGenericsNegative<T extends java.lang.Number> {
public m(T x) {
return x;
}
}
class A {
public m1() {
x;
x = new TestSimpleClassesWithBoundedGenericsNegative<String>();
return x.m("abc");
}
}