blob: 22e7e343448ea39798707dccdbdb36ca3aaa5141 (
plain) (
blame)
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"
}
}
}
|