mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
convert to diamonds: raise a problem if containing method can't be resolved (IDEA-151540)
This commit is contained in:
+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