Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting8/IDEA57494.java
T
Anna.Kozlova 250956f8b0 report inference error if resolution failed (IDEA-179978)
in the issue, non-vararg overload candidate was chosen cause it was not filtered as inapplicable
2017-10-13 10:47:47 +02:00

17 lines
366 B
Java

import java.util.*;
abstract class A {
abstract <T> T baz(List<? super List<? super T>> a);
void bar(List<List<?>> x){
String s = baz(x);
}
}
abstract class A1{
abstract <T> T baz(List<? super T> a);
void bar(List<?> x){
String o = <error descr="Incompatible upper bounds: Object, capture of ?, String">baz(x);</error>
}
}