summaryrefslogtreecommitdiff
path: root/test/files/run/t5380.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t5380.scala')
-rw-r--r--test/files/run/t5380.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/run/t5380.scala b/test/files/run/t5380.scala
new file mode 100644
index 0000000000..6083161a9b
--- /dev/null
+++ b/test/files/run/t5380.scala
@@ -0,0 +1,6 @@
+object Test {
+ def main(args: Array[String]) {
+ val f = () => return try { 1 } catch { case _ => 0 }
+ f()
+ }
+}