removing static type assertions work in progress

This commit is contained in:
Dmitry Jemerov
2015-10-07 12:19:37 +02:00
parent 8f87efc0a2
commit 1523d5bcbf
149 changed files with 514 additions and 867 deletions
@@ -17,12 +17,16 @@ class Z : D() {
fun box(): String {
val z = Z()
val d: D = z
val c: C = z
val b: B<String> = z
val a: A<String> = z
return when {
z.foo("") != "Z" -> "Fail #1"
(z : D).foo("") != "Z" -> "Fail #2"
(z : C).foo("") != "Z" -> "Fail #3"
(z : B<String>).foo("") != "Z" -> "Fail #4"
(z : A<String>).foo("") != "Z" -> "Fail #5"
z.foo("") != "Z" -> "Fail #1"
d.foo("") != "Z" -> "Fail #2"
c.foo("") != "Z" -> "Fail #3"
b.foo("") != "Z" -> "Fail #4"
a.foo("") != "Z" -> "Fail #5"
else -> "OK"
}
}