Duplicate :
|
The following program does not compile: class X<T> {} class Test { public void test() { m(new X<X<Integer>>(), new X()); // compile error in javac } public <T> void m(X<T> x, T t) {} } ACTUAL BEHAVIOR: does not compile EXPECTED BEHAVIOUR: compile with warning
|