ee554d2e2f
This fixes a couple of verify errors related to the order of supertypes in the class declaration
38 lines
452 B
Kotlin
38 lines
452 B
Kotlin
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"
|
|
}
|