fix testdata

This commit is contained in:
Anna.Kozlova
2018-12-03 15:27:44 +01:00
parent 05d04d91b6
commit 569d069304
@@ -8,7 +8,7 @@ class SwitchExpressions {
default -> "whatever";
});
System.out.println(<error descr="'switch' expression does not have any case clauses">switch (new Random().nextInt()) { }</error>);
System.out.println(switch (<error descr="'switch' expression does not have any case clauses">new Random().nextInt()</error>) { });
System.out.println(switch (new Random().nextInt()) {
case 0 -> throw new IllegalStateException("no args");