summaryrefslogtreecommitdiff
path: root/test/files/pos/t2171.scala
blob: a5663c96cd9c613d16d622096826f5a561fe9238 (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 ("...") 
}