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



                                                                    

   
object Test extends dotty.runtime.LegacyApp {
  val foos = (1 to 1000).toSeq
  try
    foos.par.map(i => if (i % 37 == 0) sys.error("i div 37") else i)
  catch {
    case ex: RuntimeException => println("Runtime exception")
  }
}