e81d3fa8c3
Ensure a compile-time error is produced when there are no result expressions in an switch expression. Reviewed-by: vromero
12 lines
912 B
Plaintext
12 lines
912 B
Plaintext
ExpressionSwitchBreaks2.java:19:25: compiler.err.break.outside.switch.expression
|
|
ExpressionSwitchBreaks2.java:27:29: compiler.err.return.outside.switch.expression
|
|
ExpressionSwitchBreaks2.java:28:29: compiler.err.continue.outside.switch.expression
|
|
ExpressionSwitchBreaks2.java:29:29: compiler.err.continue.outside.switch.expression
|
|
ExpressionSwitchBreaks2.java:30:29: compiler.err.undef.label: UNKNOWN
|
|
ExpressionSwitchBreaks2.java:40:17: compiler.err.no.switch.expression
|
|
ExpressionSwitchBreaks2.java:40:29: compiler.err.cant.resolve.location: kindname.variable, undef, , , (compiler.misc.location: kindname.class, ExpressionSwitchBreaks2, null)
|
|
ExpressionSwitchBreaks2.java:45:22: compiler.err.break.outside.switch.expression
|
|
ExpressionSwitchBreaks2.java:49:22: compiler.err.break.outside.switch.expression
|
|
- compiler.note.preview.filename: ExpressionSwitchBreaks2.java
|
|
- compiler.note.preview.recompile
|
|
9 errors |