Files
kotlin-fork/compiler/testData/codegen/box/fakeOverride/propertySetter.kt
T
Alexander Udalov ee554d2e2f Unwrap fake override of original
This fixes a couple of verify errors related to the order of supertypes in the
class declaration
2013-12-09 17:59:58 +04:00

19 lines
244 B
Kotlin

trait T {
var result: String
}
open class A : T {
override var result: String
get() = ""
set(value) {}
}
class B : A(), T
class C : T, A()
fun box(): String {
B().result = ""
C().result = ""
return "OK"
}