summaryrefslogtreecommitdiff
path: root/test/pending/run/exc2.scala
blob: 8adf9b4a37b5dbd7e249acd6b049cac70360f48e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
object exc2 extends Application {
  def foo() = {
    while (true) {
      try {
        Console.println("foo")
      } catch {
        case ex: Exception =>
          Console.println("bar")
      }
    }
  }
}