14 lines
236 B
Plaintext
14 lines
236 B
Plaintext
|
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);
|
||
|
}
|
||
|
}
|