aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/pos/t7433.scala
blob: 22e7e343448ea39798707dccdbdb36ca3aaa5141 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                              
object Test {
  def foo(): Unit = {
    try {
      for (i <- 1 until 5) return
    } catch {
      case _: NullPointerException | _: RuntimeException =>
        // was: "catch block may intercept non-local return from method check"
    }
  }
}