Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/diamond/ConstructorAccessibility.java
Anna Kozlova f2014af32f error highlighting: fix accessibility for diamond constructors (IDEA-212188)
GitOrigin-RevId: 7193877427e50351a1171df12a431effc89b6bfd
2019-05-15 10:08:04 +03:00

15 lines
301 B
Java

interface Either {
public static final class Left<L> {
private final L value;
private Left(L value) {
this.value = value;
}
}
}
class Main {
{
new <error descr="'Left(L)' has private access in 'Either.Left'">Either.Left<></error>("");
}
}