Files
kotlin-fork/compiler/testData/codegen/box/traits/kt5393_property.kt
T

21 lines
309 B
Kotlin
Vendored

var result = "Fail"
interface A {
var foo: String
get() = result
set(value) { result = value }
}
interface B : A
class C : B {
override var foo: String
get() = super.foo
set(value) { super.foo = value }
}
fun box(): String {
C().foo = "OK"
return C().foo
}