aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t2171.scala
blob: 6c754c76a656673f2af778b227fd732df5400c2d (plain) (blame)
1
2
3
4
5
6
7
final object test {
  def logIgnoredException(msg: => String) =
    try 0 catch { case ex => println(msg) }

    def main (args: Array[String]): Unit =
      while (true) logIgnoredException ("...")
}