Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/diamond/NestedClassArgConstructor.java
Anna Kozlova 5a29d515fc [java] skip diamond inference for constructor calls of static nested classes
EA-246216 - T: JavaMethodsConflictResolver.resolveConflict

GitOrigin-RevId: 5fc2f7118bf68a1d0b9f80bfcbbbfa768fc6bea8
2022-07-08 09:59:12 +00:00

11 lines
315 B
Java

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) {}
}