mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
Move test files
GitOrigin-RevId: 83389f43c35e596912dc08c51550df67f16d50e5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
da6267b961
commit
1530062b6c
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user