Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createClassFromUsage/afterDeconstructionPattern2.java
Andrey.Cherkasov 375b7b102f [java-intentions] Implement quick-fix to create record from deconstruction pattern, if the identifier is unresolved
IDEA-303300

GitOrigin-RevId: f4cd752f81987885a72b5da8d898f875a5198dcb
2022-10-10 17:13:10 +00:00

12 lines
242 B
Java

// "Create record 'Point'" "true-preview"
class Test {
void foo(Object obj) {
switch (obj) {
case Point(double x, double y) -> {}
default -> {}
}
}
}
public record Point(double x, double y) {
}