enable diamonds in field initializers (IDEA-63979)

This commit is contained in:
anna
2011-01-12 16:51:31 +01:00
parent c73c7fade3
commit 5ae4640721
3 changed files with 12 additions and 0 deletions
@@ -0,0 +1,6 @@
import java.util.ArrayList;
import java.util.List;
class Test {
List<String> queue = new ArrayList<>();
}
@@ -77,6 +77,10 @@ public class LightAdvHighlightingJdk7Test extends LightDaemonAnalyzerTestCase {
doTest(false, false);
}
public void testDiamondMisc() throws Exception {
doTest(false, false);
}
public void testDynamicallyAddIgnoredAnnotations() throws Exception {
ExtensionPoint<EntryPoint> point = Extensions.getRootArea().getExtensionPoint(ExtensionPoints.DEAD_CODE_TOOL);
EntryPoint extension = new EntryPoint() {
@@ -123,6 +123,8 @@ public class PsiDiamondType extends PsiType {
}
}
}
} else if (parent instanceof PsiVariable) {
return getComponentTypes(((PsiVariable)parent).getType());
}
}
return NULL_TYPES;