Unwrap fake override of original

This fixes a couple of verify errors related to the order of supertypes in the
class declaration
This commit is contained in:
Alexander Udalov
2013-12-09 15:46:19 +04:00
parent 68961004a5
commit ee554d2e2f
6 changed files with 152 additions and 2 deletions
@@ -0,0 +1,18 @@
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"
}