removing static type assertions work in progress
This commit is contained in:
@@ -11,10 +11,12 @@ class Z : B() {
|
||||
|
||||
fun box(): String {
|
||||
val z = Z()
|
||||
val b: B = z
|
||||
val a: A<String> = z
|
||||
return when {
|
||||
z.foo("") != "Z" -> "Fail #1"
|
||||
(z : B).foo("") != "Z" -> "Fail #2"
|
||||
(z : A<String>).foo("") != "Z" -> "Fail #3"
|
||||
z.foo("") != "Z" -> "Fail #1"
|
||||
b.foo("") != "Z" -> "Fail #2"
|
||||
a.foo("") != "Z" -> "Fail #3"
|
||||
else -> "OK"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user