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,37 @@
trait T {
val foo: String
}
open class A : T {
override val foo: String = ""
}
class B : A(), T
class C : T, A()
trait U : T
class D : U, A()
class E : A(), U
class F : U, T, A()
class G : T, U, A()
class H : U, A(), T
class I : T, A(), U
class J : A(), U, T
class K : A(), T, U
fun box(): String {
B().foo
C().foo
D().foo
E().foo
F().foo
G().foo
H().foo
I().foo
J().foo
K().foo
return "OK"
}