From 1663768a999cbe29d1cd5e086be86a03918a8adb Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 3 Jan 2017 21:54:02 +0700 Subject: Add test case --- tests/run/i1732.scala | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/run/i1732.scala (limited to 'tests') 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 + } + } +} -- cgit v1.2.3