[java-highlighting] IDEA-324599 IJ-CR-110513 Use isAccessedForWriting for guard expression

GitOrigin-RevId: 3baedbcb85eb0de7a186cc9f990693da7283f90a
This commit is contained in:
Mikhail Pyltsin
2023-07-11 19:58:29 +02:00
committed by intellij-monorepo-bot
parent 83c8e42dda
commit ae0a9aceaa
2 changed files with 12 additions and 0 deletions

View File

@@ -181,4 +181,13 @@ class Test {
}
}
}
void testUnary(Object o, Integer in) {
switch (o) {
case Integer mode when -in == 1 && -mode == 2:
break;
default:
break;
}
}
}