summaryrefslogtreecommitdiff
path: root/test/files/neg/check-dead.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/check-dead.check')
-rw-r--r--test/files/neg/check-dead.check16
1 files changed, 11 insertions, 5 deletions
diff --git a/test/files/neg/check-dead.check b/test/files/neg/check-dead.check
index be4de3060b..29601c1d4a 100644
--- a/test/files/neg/check-dead.check
+++ b/test/files/neg/check-dead.check
@@ -1,7 +1,13 @@
-check-dead.scala:27: error: dead code following this construct
- throw new Exception
+check-dead.scala:7: error: dead code following this construct
+ def z1 = y1(throw new Exception) // should warn
+ ^
+check-dead.scala:10: error: dead code following this construct
+ def z2 = y2(throw new Exception) // should warn
+ ^
+check-dead.scala:29: error: dead code following this construct
+ throw new Exception // should warn
^
-check-dead.scala:31: error: dead code following this construct
- throw new Exception
+check-dead.scala:33: error: dead code following this construct
+ throw new Exception // should warn
^
-two errors found
+four errors found