Generate catch-block body within proper scope

This commit is contained in:
Dmitry Petrov
2017-04-28 17:04:16 +03:00
parent acefd0d891
commit 90ec53b3b0
5 changed files with 43 additions and 10 deletions
@@ -0,0 +1,2 @@
fun test(f: () -> Unit) =
try { f() } catch (e: Exception) { throw e }