aboutsummaryrefslogblamecommitdiff
path: root/tests/run/t5375.scala
blob: 256f5435e0b59925d997aeb6d5d913f4252aec85 (plain) (tree)
1
2
3
4
5
6
7
8
9
             
                              






                                                                      

   
object Test {
  val foos = (1 to 1000).toSeq

  def main(args: Array[String]): Unit = {
    try
      foos.par.map(i => if (i % 37 == 0) sys.error("i div 37") else i)
    catch {
      case ex: RuntimeException => println("Runtime exception")
    }
  }
}