aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/not-representable/pos/tryexpr.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/not-representable/pos/tryexpr.scala')
-rw-r--r--tests/disabled/not-representable/pos/tryexpr.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/disabled/not-representable/pos/tryexpr.scala b/tests/disabled/not-representable/pos/tryexpr.scala
new file mode 100644
index 000000000..c6c2febf7
--- /dev/null
+++ b/tests/disabled/not-representable/pos/tryexpr.scala
@@ -0,0 +1,10 @@
+// stretching more flexible try/catch's legs a bit
+object o {
+ try Integer.parseInt("xxxx") catch { case e => 5 }
+ try 5
+ try try try 10
+ try try try 10 catch { case e => 20 } finally 30
+ try try try 10 catch { case e => 20 } finally 30 finally 40
+ try try try 10 catch { case e => 20 } finally 30 finally 40 finally 50
+ try try try 10 finally 50
+}