summaryrefslogtreecommitdiff
path: root/test/files/run/justthrow.scala
blob: 0ff5b54e71c6f91b2eba7cd62f2d9c5540d6bd13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
object Test {
  def main(args:Array[String]): Unit = {
    try {
      throw new Error();
    }
    catch {
      case _ => Console.println("exception happened\n");
    }
  }
}