Fixed bug in LocalDeclarationsLowering + test
Bug was in determining whether a function was locally defined
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package codegen.inline.localFunctionInInitializerBlock
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
class Foo {
|
||||
init {
|
||||
bar()
|
||||
}
|
||||
}
|
||||
|
||||
inline fun bar() {
|
||||
println({ "Ok" }())
|
||||
}
|
||||
|
||||
@Test fun runTest() {
|
||||
Foo()
|
||||
}
|
||||
Reference in New Issue
Block a user