Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/graphInference/IncompleteSubstitution.java
anna 3188589850 new inference: do not instantiate vars with upper bounds mix when incomplete substitutor is supposed
(cherry picked from commit ff73c519f10ec947b86832a0c4ce5d6ee9b9e4c3)
2013-11-25 16:48:06 +01:00

22 lines
379 B
Java

import java.util.*;
class Test {
interface I<T> {
T foo();
}
class Inner<T> { }
<M1 extends List<?>> Inner<M1> staticFactory() {
return null;
}
<M2 extends List<?>> void foo(I<M2> coll,
Inner<M2> assertion) { }
void test(I<List<List<Integer>>> coll) {
foo(coll, staticFactory());
}
}