mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
convert to diamonds: raise a problem if containing method can't be resolved (IDEA-151540)
This commit is contained in:
+1
-1
@@ -11,6 +11,6 @@ abstract class Overloadsss {
|
||||
|
||||
{
|
||||
List<String> l = foo(bar (null));
|
||||
List<String> l1 = foo(bar1<error descr="Ambiguous method call: both 'Overloadsss.bar1(List<Object>)' and 'Overloadsss.bar1(Set<Object>)' match">(null)</error>);
|
||||
List<String> l1 = foo(bar1<error descr="Ambiguous method call: both 'Overloadsss.bar1(List<K>)' and 'Overloadsss.bar1(Set<K>)' match">(null)</error>);
|
||||
}
|
||||
}
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
// "Replace with <>" "false"
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
class Test {
|
||||
|
||||
void testInbound() throws Exception {
|
||||
final Object[] with = (Object[])with(Collections.<Obj<caret>ect>emptyList());
|
||||
}
|
||||
|
||||
<T> T with(List<T> l) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean[] with(List<Boolean> matcher) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public double[] with(List<Double> matcher) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user