forked from JavaTX/JavaCompilerCore
506fd0dc0e
modified: ../../AllgemeinTest/Pair.jav modified: ../../AllgemeinTest/UseWildcardPair.jav modified: ../../../src/main/java/de/dhbwstuttgart/parser/SyntaxTreeGenerator/TypeGenerator.java ? extends Object nochmals angepasst modified: ../../../src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java modified: ../../../src/test/java/AllgemeinTest.java
12 lines
199 B
Java
12 lines
199 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
|
|
}
|
|
|
|
} |