aboutsummaryrefslogtreecommitdiff
path: root/tests/run/exc1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/exc1.scala')
-rw-r--r--tests/run/exc1.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/run/exc1.scala b/tests/run/exc1.scala
new file mode 100644
index 000000000..c48b4c156
--- /dev/null
+++ b/tests/run/exc1.scala
@@ -0,0 +1,10 @@
+object Test extends dotty.runtime.LegacyApp {
+ def foo(): Unit = {
+ while (true) {
+ try {
+ } catch {
+ case ex: Exception =>
+ }
+ }
+ }
+}