mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-87091 JAVA: bad completion in type parameter
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
public class Util {
|
||||
|
||||
public static <T,V> List<V> map(@NotNull Function<T, V> mapping) { }
|
||||
|
||||
public Object[] getVariants() {
|
||||
return map(new Function<Object, AIOO<caret>>() { }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
interface Function<Param, Result> {
|
||||
Result fun(Param param);
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
public class Util {
|
||||
|
||||
public static <T,V> List<V> map(@NotNull Function<T, V> mapping) { }
|
||||
|
||||
public Object[] getVariants() {
|
||||
return map(new Function<Object, ArrayIndexOutOfBoundsException<caret>>() { }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
interface Function<Param, Result> {
|
||||
Result fun(Param param);
|
||||
}
|
||||
+2
@@ -402,6 +402,8 @@ public class NormalCompletionTest extends LightFixtureCompletionTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testAnonymousTypeParameter() throws Throwable { doTest(); }
|
||||
|
||||
public void testClassLiteralInAnnoParam() throws Throwable {
|
||||
doTest();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user