blob: f2109f4afad153d8d8fff53b6ae8dc96df187034 (
plain) (
tree)
|
|
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"
}
}
}
|