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