diff options
Diffstat (limited to 'test/files/neg/nonlocal-warning.scala')
-rw-r--r-- | test/files/neg/nonlocal-warning.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/nonlocal-warning.scala b/test/files/neg/nonlocal-warning.scala new file mode 100644 index 0000000000..cc98bd631a --- /dev/null +++ b/test/files/neg/nonlocal-warning.scala @@ -0,0 +1,7 @@ +class Foo { + def foo(l: List[Int]): Int = { + try l foreach { _ => return 5 } + catch { case x => 11 } + 22 + } +} |