mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 11:47:50 +07:00
[java-highlighting] IDEA-323955 Record patterns support available only for Java 20 preview. Fix compiler errors and tests
GitOrigin-RevId: 5f856519e56e61818e95cf63766fb6a54c6283ad
This commit is contained in:
committed by
intellij-monorepo-bot
parent
770e5e4e90
commit
4bc43b46f4
@@ -3,7 +3,7 @@ class Foo {
|
||||
void test(Object obj) {
|
||||
boolean flag;
|
||||
switch (obj) {
|
||||
case String s && flag -> System.out.println(1);
|
||||
case String s when flag -> System.out.println(1);
|
||||
default -> System.out.println(2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
class Foo {
|
||||
void test(Object obj) {
|
||||
switch (obj) {
|
||||
case String s && flag<caret> -> System.out.println(1);
|
||||
case String s when flag<caret> -> System.out.println(1);
|
||||
default -> System.out.println(2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user