diff options
author | odersky <odersky@gmail.com> | 2017-03-07 13:58:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-07 13:58:31 +0100 |
commit | bade85e43b3213af752cb1eed52190cb8569feb6 (patch) | |
tree | 5dc70900e50ca2ff672bf3148d6f9684d425d6c8 /tests | |
parent | c90ea6b62de5d70f8855b377688f62c40dfe3a66 (diff) | |
parent | 094cd9ff3b07536f75f3a233606823ae5478d542 (diff) | |
download | dotty-bade85e43b3213af752cb1eed52190cb8569feb6.tar.gz dotty-bade85e43b3213af752cb1eed52190cb8569feb6.tar.bz2 dotty-bade85e43b3213af752cb1eed52190cb8569feb6.zip |
Merge pull request #2059 from dotty-staging/fix/inline-EmptyTree
Fix #2056: Backend crash when inlined method contains try
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/i2056.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/pos/i2056.scala b/tests/pos/i2056.scala new file mode 100644 index 000000000..c4d020fb6 --- /dev/null +++ b/tests/pos/i2056.scala @@ -0,0 +1,13 @@ +object Test { + inline def crash() = { + try { + println("hi") + } catch { + case e: Exception => + } + } + + def main(args: Array[String]): Unit = { + crash() + } +} |