[java-highlighting] IDEA-325916 Get rid of deconstruction patterns with pattern variables.

Clean tests

GitOrigin-RevId: ca1094fd7060754a17d1a18c68c66fed4bc0bbb4
This commit is contained in:
Mikhail Pyltsin
2023-07-20 12:24:05 +02:00
committed by intellij-monorepo-bot
parent f61c8612f9
commit b5a82c4c70
4 changed files with 2 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
record R(int x, int y){}
class Test{
void foo(Object o) {
if (o instanceof R(int w, int c) s){
if (o instanceof R(int w, int c)){
System.out.println(w<caret>);
}
}

View File

@@ -1,7 +1,7 @@
record R(int x, int y){}
class Test{
void foo(Object o) {
if (o instanceof R(int <caret>w, int c) s){
if (o instanceof R(int <caret>w, int c)){
System.out.println(w);
}
}

View File

@@ -1,8 +0,0 @@
record R(int x, int y){}
class Test{
void foo(Object o) {
if (o instanceof R(int w, int c) s){
System.out.println(s<caret>);
}
}
}

View File

@@ -1,8 +0,0 @@
record R(int x, int y){}
class Test{
void foo(Object o) {
if (o instanceof R(int w, int c) <caret>s){
System.out.println(s);
}
}
}