Files
kotlin/compiler/testData/codegen/box/objects/selfReferenceToObjectInLambdaInSuperConstructorCall.kt
2019-11-19 11:00:09 +03:00

8 lines
153 B
Kotlin
Vendored

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