Files
kotlin-fork/compiler/testData/codegen/box/traits/withRequired/property.kt
T
2015-05-12 19:43:17 +02:00

18 lines
255 B
Kotlin

open class Base {
var s = "Fail"
}
interface Trait : Base {
var value : String
get() = s
set(value) { s = value }
}
class Derived : Trait, Base()
fun box(): String {
val d = Derived()
d.value = "OK"
return d.value
}