aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t3869.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t3869.scala')
-rw-r--r--tests/untried/pos/t3869.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/untried/pos/t3869.scala b/tests/untried/pos/t3869.scala
new file mode 100644
index 000000000..581c11c81
--- /dev/null
+++ b/tests/untried/pos/t3869.scala
@@ -0,0 +1,10 @@
+
+// see ticket #3869
+object Test {
+ def f: Unit =
+ try return finally while(true) ()
+
+ def main(args: Array[String]): Unit = {
+ f
+ }
+}