diamonds; actual types accepted in java 7 even if no formal types were defined!

(cherry picked from commit 903984b162008a56def605c72743c22517304a2d)
This commit is contained in:
anna
2011-05-02 21:14:20 +02:00
parent 430f611e7d
commit 3bb0c9d03a
8 changed files with 124 additions and 18 deletions

View File

@@ -68,16 +68,22 @@ public class LightAdvHighlightingJdk7Test extends LightDaemonAnalyzerTestCase {
doTest(false, false);
}
/*
should be negative?
intersection types are not allowed in <>?!
public void testDiamondPos6() throws Exception {
doTest(false, false);
}
public void testDiamondPos7() throws Exception {
doTest(false, false);
}*/
}
public void testDiamondPos8() throws Exception {
doTest(false, false);
}
public void testDiamondPos9() throws Exception {
doTest(false, false);
}
public void testDiamondNeg1() throws Exception {
doTest(false, false);
@@ -123,6 +129,18 @@ public class LightAdvHighlightingJdk7Test extends LightDaemonAnalyzerTestCase {
doTest(false, false);
}
public void testDiamondNeg12() throws Exception {
doTest(false, false);
}
public void testDiamondNeg13() throws Exception {
doTest(false, false);
}
public void testDiamondNeg14() throws Exception {
doTest(false, false);
}
public void testDiamondMisc() throws Exception {
doTest(false, false);
}