[java] switch expressions: basic highlighting (IDEA-196643)

This commit is contained in:
Roman Shevchenko
2018-11-13 13:28:15 +01:00
parent 193aa1f2cf
commit 2b84e80868
9 changed files with 123 additions and 21 deletions
@@ -32,6 +32,9 @@ class UnsupportedFeatures {
switch (list.size()) {
case <error descr="Enhanced 'switch' blocks are not supported at language level '6'">1, 2</error>:
}
System.out.println(<error descr="'switch' expressions are not supported at language level '6'">switch (list.size()) {
default -> "whoa!";
}</error>);
}
void f(<error descr="Receiver parameters are not supported at language level '6'">Object this</error>) { }