1 2 3 4 5 6 7
object Test extends dotty.runtime.LegacyApp { try { List().head } catch { case _ :java.util.NoSuchElementException => println("ok") } }