summaryrefslogtreecommitdiff
path: root/test/files/neg/check-dead.check
blob: 2150a942bf89c04f3bd188c820a28377c54f7870 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
check-dead.scala:7: warning: dead code following this construct
  def z1 = y1(throw new Exception)  // should warn
              ^
check-dead.scala:10: warning: dead code following this construct
  def z2 = y2(throw new Exception)  // should warn
              ^
check-dead.scala:29: warning: dead code following this construct
    throw new Exception // should warn
    ^
check-dead.scala:33: warning: dead code following this construct
    throw new Exception // should warn
    ^
error: No warnings can be incurred under -Xfatal-warnings.
four warnings found
one error found