Move test files

GitOrigin-RevId: 83389f43c35e596912dc08c51550df67f16d50e5
This commit is contained in:
Andrey Cherkasov
2023-07-03 16:43:58 +04:00
committed by intellij-monorepo-bot
parent da6267b961
commit 1530062b6c
2 changed files with 0 additions and 0 deletions

View File

@@ -1,15 +0,0 @@
// "Move 'x' into anonymous object" "true-preview"
class Test {
void test(Object o) {
var ref = new Object() {
int x = 42;
};
switch (o) {
case null -> System.out.println(0);
case Integer i -> System.out.println(1);
case String s when s.length() == ref.x++ -> System.out.println(2);
default -> System.out.println(123);
}
}
}

View File

@@ -1,13 +0,0 @@
// "Move 'x' into anonymous object" "true-preview"
class Test {
void test(Object o) {
int x = 42;
switch (o) {
case null -> System.out.println(0);
case Integer i -> System.out.println(1);
case String s when s.length() == x<caret>++ -> System.out.println(2);
default -> System.out.println(123);
}
}
}