mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
HighlightControlFlowUtil: disable assignment to pattern variables
GitOrigin-RevId: 09c4aa42068ce0258543a17546404fcdec952404
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3fc9bf9589
commit
2380906af8
+7
@@ -0,0 +1,7 @@
|
||||
class X {
|
||||
void expressions(Object obj) {
|
||||
if (obj instanceof String s) {
|
||||
<error descr="Cannot assign a value to final variable 's'">s</error> = "foo";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user