aboutsummaryrefslogtreecommitdiff
path: root/tests/run/i1732.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/i1732.scala')
-rw-r--r--tests/run/i1732.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/run/i1732.scala b/tests/run/i1732.scala
new file mode 100644
index 000000000..6c090a2eb
--- /dev/null
+++ b/tests/run/i1732.scala
@@ -0,0 +1,15 @@
+object Test {
+ import scala.util.control.Breaks
+
+ def brk(f: () => Unit): Unit = try {
+ f()
+ } catch {
+ case ex: NotImplementedError =>
+ }
+ def main(args: Array[String]): Unit = {
+ brk { () => ??? }
+ Breaks.breakable {
+ Breaks.break
+ }
+ }
+}