1 2 3 4 5 6 7 8 9 10
object Test extends App { def foo(): Unit = { while (true) { try { } catch { case ex: Exception => } } } }