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

14 lines
236 B
Java
Executable File

class A<T>{
}
public class TestNestedGenerics{
<T extends A<C>,C> void foo(T a,C b){}
void m(){
TestNestedGenerics t = new TestNestedGenerics();
String str = new String();
A<String> a = new A<String>();
t.foo(a,str);
}
}