JavaTXCompilerInJavaTX/bin/mycompiler/test/generics/TestNestedGenerics.jav

14 lines
236 B
Plaintext
Raw Normal View History

2013-10-18 11:33:46 +00:00
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);
}
}