Fixed bug in LocalDeclarationsLowering + test

Bug was in determining whether a function was locally defined
This commit is contained in:
Igor Chevdar
2018-01-18 13:23:56 +03:00
parent b2098088ec
commit f218e2676e
4 changed files with 756 additions and 0 deletions
@@ -0,0 +1,17 @@
package codegen.inline.localFunctionInInitializerBlock
import kotlin.test.*
class Foo {
init {
bar()
}
}
inline fun bar() {
println({ "Ok" }())
}
@Test fun runTest() {
Foo()
}