mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
testdata for IDEA-127767
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user