Files
kotlin/compiler/testData/codegen/box/objects/selfReferenceToObjectInInlineLambdaInConstructorBody.kt
2018-06-28 12:26:41 +02:00

9 lines
160 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
object Test {
fun ok() = "OK"
val x = run { Test.ok() }
fun test() = x
}
fun box() = Test.test()