summaryrefslogblamecommitdiff
path: root/test/files/run/t8845.scala
blob: 8ccdbdadc75cc347f86ea30ca7e31a04fd037504 (plain) (tree)
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 App {
  Interpreter.break(0)
}