Files
kotlin-fork/compiler/testData/codegen/box/regressions/objectInsideDelegation.kt
T
2019-11-19 11:00:09 +03:00

24 lines
347 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
val b: First by lazy {
object : First { }
}
private val withoutType by lazy {
object : First { }
}
private val withTwoSupertypes by lazy {
object : First, Second { }
}
interface First
interface Second
fun box(): String {
b
withoutType
withTwoSupertypes
return "OK"
}