15 lines
216 B
Kotlin
Vendored
15 lines
216 B
Kotlin
Vendored
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
|
|
} |