diff options
Diffstat (limited to 'tests/untried/neg/t4440.check')
-rw-r--r-- | tests/untried/neg/t4440.check | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/untried/neg/t4440.check b/tests/untried/neg/t4440.check new file mode 100644 index 000000000..10e7188e3 --- /dev/null +++ b/tests/untried/neg/t4440.check @@ -0,0 +1,15 @@ +t4440.scala:12: warning: The outer reference in this type test cannot be checked at run time. + case _: b.Inner => println("b") + ^ +t4440.scala:13: warning: The outer reference in this type test cannot be checked at run time. + case _: a.Inner => println("a") // this is the case we want + ^ +t4440.scala:16: warning: The outer reference in this type test cannot be checked at run time. + case _: a.Inner => println("a") + ^ +t4440.scala:17: warning: The outer reference in this type test cannot be checked at run time. + case _: b.Inner => println("b") // this is the case we want + ^ +error: No warnings can be incurred under -Xfatal-warnings. +four warnings found +one error found |