Skip to content

Commit 1663768

Browse files
committed
Add test case
1 parent 328ded4 commit 1663768

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/run/i1732.scala

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
object Test {
2+
import scala.util.control.Breaks
3+
4+
def brk(f: () => Unit): Unit = try {
5+
f()
6+
} catch {
7+
case ex: NotImplementedError =>
8+
}
9+
def main(args: Array[String]): Unit = {
10+
brk { () => ??? }
11+
Breaks.breakable {
12+
Breaks.break
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)