Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/CannotCreateArrayWithEmptyDiamond.java
Bas Leijdekkers ab928055bb Java: better error reporting and quick fixes for the diamond operator and generic array creation (IDEA-299195)
GitOrigin-RevId: baa354ad9132bf6d939f19ecd2cfd6cfc56466a2
2024-01-08 17:34:42 +00:00

9 lines
307 B
Java

import java.util.ArrayList;
class Test {
void foo() {
ArrayList<String>[] lists1 = new ArrayList<error descr="Array creation with '<>' not allowed"><></error>[5];
ArrayList<String>[] lists2 = new ArrayList<error descr="Array creation with '<>' not allowed"></*blah blah blah*/></error>[5];
}
}