object Test extends App { def foo(): Unit = { while (true) { try { } catch { case ex: Exception => } } } }