switch expressions 2.0: update CFG & inference

GitOrigin-RevId: 8f83e7c2c57819e34c4cb8fa5d44a863b0b58532
This commit is contained in:
Anna Kozlova
2019-07-02 06:52:16 +03:00
committed by intellij-monorepo-bot
parent 4f1fbce19d
commit 8475ba3e51
11 changed files with 72 additions and 69 deletions
@@ -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(