testdata for IDEA-127767

This commit is contained in:
Anna Kozlova
2014-10-07 14:25:26 +02:00
parent a5ac8ea1d2
commit 02c3e4395d
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
class Scratch
{
public static class PredicatedProposal<T>
{
private final Discriminator<? super T> pred = null;
public Discriminator<? super T> get()
{
return this.pred;
}
}
public static interface Discriminator<T extends String> extends Predicate<T>
{
}
interface Predicate<T> {
boolean val(T t);
}
}

View File

@@ -380,6 +380,10 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
//jdk should propagate LL 1.4 but actually it provides LL 1.7?!
public void testCastObjectToIntJdk14() { doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_4, false); }
public void testIDEA127767() {
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, false);
}
public void testHiddenMethodsOfAnonymousClass() throws Exception {
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, false);
}