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

16 lines
246 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
interface Intf {
val aValue: String
}
class ClassB {
val x = { "OK" }
val value: Intf = object : Intf {
override val aValue = x()
}
}
fun box() : String {
return ClassB().value.aValue
}