Files
kotlin-fork/compiler/testData/codegen/box/operatorConventions/kt14201.kt
T
2018-06-28 12:26:41 +02:00

16 lines
242 B
Kotlin
Vendored

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