summaryrefslogtreecommitdiff
path: root/test/files/pos/t7433.scala
blob: f2109f4afad153d8d8fff53b6ae8dc96df187034 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
object Test {
  def foo() {
    try {
      for (i <- 1 until 5) return
    } catch {
      case _: NullPointerException | _: RuntimeException =>
        // was: "catch block may intercept non-local return from method check"
    }
  }
}