blob: bb68142e568d35ff6a1f6d98e7709b1bcff06847 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)
}
|