error highlighting: fix accessibility for diamond constructors (IDEA-212188)

GitOrigin-RevId: 7193877427e50351a1171df12a431effc89b6bfd
This commit is contained in:
Anna Kozlova
2019-05-15 10:08:04 +03:00
committed by intellij-monorepo-bot
parent 2f4b69a198
commit f2014af32f
4 changed files with 26 additions and 5 deletions
@@ -0,0 +1,15 @@
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>("");
}
}