[java] skip diamond inference for constructor calls of static nested classes

EA-246216 - T: JavaMethodsConflictResolver.resolveConflict

GitOrigin-RevId: 5fc2f7118bf68a1d0b9f80bfcbbbfa768fc6bea8
This commit is contained in:
Anna Kozlova
2022-07-08 09:08:27 +02:00
committed by intellij-monorepo-bot
parent c378f327ff
commit 5a29d515fc
3 changed files with 25 additions and 17 deletions

View File

@@ -0,0 +1,11 @@
class R<T> {
static class O {
public O(<error descr="'R.this' cannot be referenced from a static context">T</error> t) {
}
}
public static void main(String[] args) {
test(new R<>.O<error descr="'O(java.lang.Object)' in 'R.O' cannot be applied to '()'">()</error>);
}
private static void test(R.O o) {}
}