diff options
Diffstat (limited to 'tests/run/contrib674.scala')
-rw-r--r-- | tests/run/contrib674.scala | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/run/contrib674.scala b/tests/run/contrib674.scala new file mode 100644 index 000000000..fe7ebcccd --- /dev/null +++ b/tests/run/contrib674.scala @@ -0,0 +1,19 @@ +// causes VerifyError with scala-2.5.1 + +object Test extends dotty.runtime.LegacyApp { + def bad(): Unit = { + try { + 1 + } catch { + case e: Throwable => + } finally { + try { + } catch { + case e: Throwable => + } + } + 1 + } + + bad +} |