testdata for IDEA-130243

This commit is contained in:
Anna Kozlova
2015-12-09 12:48:46 +01:00
parent be223c2734
commit c66efb2458
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
class Test {
public enum EXT {
TOP, BOTTOM
}
public static <C extends Comparable<? extends C>> C min(C c1, C... c2) {
return null;
}
public static <C extends Comparable<? extends C>> C min(EXT ext, C c1, C... c2) {
return null;
}
public static void main(String[] args) {
min("a", "b", "c");
min(EXT.TOP, "a", "b", "c");
}
}

View File

@@ -539,6 +539,10 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, false);
}
public void testIDEA130243() throws Exception {
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, false);
}
public void testProvablyDistinctForWildcardsWithArrayBounds() throws Exception {
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, false);
}