removing static type assertions work in progress
This commit is contained in:
@@ -15,8 +15,11 @@ class E : C(), D
|
||||
fun box(): String {
|
||||
val e = E()
|
||||
if (e.foo() != 222) return "Fail 1"
|
||||
if ((e : D).foo() != 222) return "Fail 2"
|
||||
if ((e : C).foo() != 222) return "Fail 3"
|
||||
if ((e : A).foo() != 222) return "Fail 4"
|
||||
val d: D = e
|
||||
val c: C = e
|
||||
val a: A = e
|
||||
if (d.foo() != 222) return "Fail 2"
|
||||
if (c.foo() != 222) return "Fail 3"
|
||||
if (a.foo() != 222) return "Fail 4"
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user