mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
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:
+1
-1
@@ -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>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user