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

9 lines
182 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
abstract class Base(val fn: () -> String)
object Test : Base(run { { Test.ok() } }) {
fun ok() = "OK"
}
fun box() = Test.fn()