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

24 lines
343 B
Kotlin
Vendored

// IGNORE_BACKEND: 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"
}