diff options
Diffstat (limited to 'tests/untried/neg/t5830.check')
-rw-r--r-- | tests/untried/neg/t5830.check | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/untried/neg/t5830.check b/tests/untried/neg/t5830.check new file mode 100644 index 000000000..58c3a1be3 --- /dev/null +++ b/tests/untried/neg/t5830.check @@ -0,0 +1,9 @@ +t5830.scala:6: warning: unreachable code + case 'a' => println("b") // unreachable + ^ +t5830.scala:4: warning: could not emit switch for @switch annotated match + def unreachable(ch: Char) = (ch: @switch) match { + ^ +error: No warnings can be incurred under -Xfatal-warnings. +two warnings found +one error found |