diff options
author | Szabolcs Berecz <szabolcs.berecz@gmail.com> | 2012-02-28 22:35:53 +0100 |
---|---|---|
committer | Szabolcs Berecz <szabolcs.berecz@gmail.com> | 2012-02-28 22:53:39 +0100 |
commit | 02e260a8e67e2b2b6f876aafe76cd61248a89374 (patch) | |
tree | 87a6f2733764c5cccd70bc7df6e87560496c46b9 /test/files/run | |
parent | 4ab3600298de995e7de6d5cfdce73e0f278341e2 (diff) | |
download | scala-02e260a8e67e2b2b6f876aafe76cd61248a89374.tar.gz scala-02e260a8e67e2b2b6f876aafe76cd61248a89374.tar.bz2 scala-02e260a8e67e2b2b6f876aafe76cd61248a89374.zip |
Fixes SI-5380: non-local return of try expression
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/si5380.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/run/si5380.scala b/test/files/run/si5380.scala new file mode 100644 index 0000000000..6083161a9b --- /dev/null +++ b/test/files/run/si5380.scala @@ -0,0 +1,6 @@ +object Test { + def main(args: Array[String]) { + val f = () => return try { 1 } catch { case _ => 0 } + f() + } +} |