[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:
Mikhail Pyltsin
2023-07-04 14:12:08 +02:00
committed by intellij-monorepo-bot
parent 770e5e4e90
commit 4bc43b46f4
130 changed files with 830 additions and 845 deletions

View File

@@ -2,7 +2,7 @@
class Main {
void foo(Object obj) {
switch (obj) {
case String s && isEmpty(s) -> {}
case String s when isEmpty(s) -> {}
default -> {}
}
}

View File

@@ -2,7 +2,7 @@
class Main {
void foo(Object obj) {
switch (obj) {
case String s && isEmpt<caret>y(s) -> {}
case String s when isEmpt<caret>y(s) -> {}
default -> {}
}
}