Files
kotlin-fork/backend.native/tests/codegen/inline/localFunctionInInitializerBlock.kt
T
Igor Chevdar f218e2676e Fixed bug in LocalDeclarationsLowering + test
Bug was in determining whether a function was locally defined
2018-01-18 15:33:47 +03:00

17 lines
203 B
Kotlin

package codegen.inline.localFunctionInInitializerBlock
import kotlin.test.*
class Foo {
init {
bar()
}
}
inline fun bar() {
println({ "Ok" }())
}
@Test fun runTest() {
Foo()
}