forked from JavaTX/JavaCompilerCore
1c31b6d769
new file: ../../AllgemeinTest/UseWildcardPair.jav modified: ../../../src/test/java/AllgemeinTest.java
12 lines
198 B
Java
12 lines
198 B
Java
import java.util.Vector;
|
|
import java.lang.Boolean;
|
|
|
|
class UseWildcardPair{
|
|
|
|
void m(Pair<?, ?> p, Vector<?> b)
|
|
{
|
|
p.compare(p); //1, type incorrect
|
|
p.compare(p.make(b)); //2, OK
|
|
}
|
|
|
|
} |