From 02e260a8e67e2b2b6f876aafe76cd61248a89374 Mon Sep 17 00:00:00 2001 From: Szabolcs Berecz Date: Tue, 28 Feb 2012 22:35:53 +0100 Subject: Fixes SI-5380: non-local return of try expression --- test/files/run/si5380.scala | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/files/run/si5380.scala (limited to 'test/files/run/si5380.scala') 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() + } +} -- cgit v1.2.3