mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
switch expressions 2.0: update CFG & inference
GitOrigin-RevId: 8f83e7c2c57819e34c4cb8fa5d44a863b0b58532
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4f1fbce19d
commit
8475ba3e51
+1
-1
@@ -12,7 +12,7 @@ class SwitchExpressions {
|
||||
|
||||
System.out.println(switch (new Random().nextInt()) {
|
||||
case 0 -> throw new IllegalStateException("no args");
|
||||
<error descr="Different case kinds used in the switch">case 1:</error> break "lone";
|
||||
<error descr="Different case kinds used in the switch">case 1:</error> yield "lone";
|
||||
});
|
||||
|
||||
System.out.println(
|
||||
|
||||
Reference in New Issue
Block a user