summaryrefslogtreecommitdiff
path: root/test/files/pos/t7433.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t7433.scala')
-rw-r--r--test/files/pos/t7433.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/t7433.scala b/test/files/pos/t7433.scala
new file mode 100644
index 0000000000..f2109f4afa
--- /dev/null
+++ b/test/files/pos/t7433.scala
@@ -0,0 +1,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"
+ }
+ }
+}