71bc41a938
Tests involving multiple inheritance fixed
17 lines
268 B
Plaintext
17 lines
268 B
Plaintext
class Outer() {
|
|
public val s = "xyzzy"
|
|
|
|
open class InnerBase(public val name: String) {
|
|
}
|
|
|
|
class InnerDerived(): InnerBase(s) {
|
|
}
|
|
|
|
public val x = InnerDerived()
|
|
}
|
|
|
|
fun box() : String {
|
|
val o = Outer()
|
|
return if (o.x.name != "xyzzy") "fail" else "OK"
|
|
}
|