mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-203812 bad code green: switch expression does not have any case clauses
This commit is contained in:
+6
@@ -58,4 +58,10 @@ class SwitchExpressions {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
enum Empty {}
|
||||
|
||||
boolean testEmpty(Empty e) {
|
||||
return switch (<error descr="'switch' expression does not have any case clauses">e</error>) {};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user