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