Fixes bug in local declarations lowering + test

This commit is contained in:
Igor Chevdar
2017-04-10 17:47:01 +03:00
parent 028cf6c947
commit 8a5659456c
3 changed files with 27 additions and 0 deletions
@@ -0,0 +1,16 @@
private fun foo() {
val local =
object {
fun bar() {
try {
} catch (t: Throwable) {
println(t)
}
}
}
local.bar()
}
fun main(args: Array<String>) {
foo()
}