report inference error if resolution failed (IDEA-179978)

in the issue, non-vararg overload candidate was chosen cause it was not filtered as inapplicable
This commit is contained in:
Anna.Kozlova
2017-10-13 10:47:47 +02:00
parent 1f89e5a55e
commit 250956f8b0
4 changed files with 60 additions and 2 deletions
@@ -11,6 +11,6 @@ abstract class A1{
abstract <T> T baz(List<? super T> a);
void bar(List<?> x){
<error descr="Incompatible types. Found: 'T', required: 'java.lang.String'">String o = baz(x);</error>
String o = <error descr="Incompatible upper bounds: Object, capture of ?, String">baz(x);</error>
}
}