aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t8845.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t8845.scala')
-rw-r--r--tests/run/t8845.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/run/t8845.scala b/tests/run/t8845.scala
new file mode 100644
index 000000000..bb68142e5
--- /dev/null
+++ b/tests/run/t8845.scala
@@ -0,0 +1,17 @@
+// crashes compiler under GenASM, works under GenBCode.
+object Interpreter {
+ def mkDataProp(i: Int) = i
+ def break(n: Int): Unit =
+ try {
+ n match {
+ case _ =>
+ val newDesc = mkDataProp(n)
+ n match { case _ => return }
+ }
+ } catch { case e: Throwable => }
+ finally { }
+}
+
+object Test extends dotty.runtime.LegacyApp {
+ Interpreter.break(0)
+}