IDEA-87091 JAVA: bad completion in type parameter

This commit is contained in:
peter
2012-06-07 12:25:21 +02:00
parent 49a2eee0ce
commit beb498c478
4 changed files with 42 additions and 7 deletions
@@ -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);
}
@@ -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);
}
@@ -402,6 +402,8 @@ public class NormalCompletionTest extends LightFixtureCompletionTestCase {
doTest();
}
public void testAnonymousTypeParameter() throws Throwable { doTest(); }
public void testClassLiteralInAnnoParam() throws Throwable {
doTest();
}