Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createInnerClassFromUsage/afterDeconstructionPattern1.java
T

9 lines
206 B
Java

// "Create inner record 'Point'" "true-preview"
class Test {
void foo(Object obj) {
if (obj instanceof Point(double x, double y)) {}
}
private record Point(double x, double y) {
}
}