Files
kotlin-fork/backend.native/tests/external/codegen/box/operatorConventions/kt14201.kt
T
2017-03-13 15:31:46 +03:00

15 lines
216 B
Kotlin

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
}