JS/RTTI: use generation for rtti test

This commit is contained in:
Alexey Tsvetkov
2015-06-10 19:41:35 +03:00
committed by Alexey Andreev
parent 0b9c041d0a
commit c6cf6a0df7
6 changed files with 99 additions and 60 deletions
+4 -1
View File
@@ -4,4 +4,7 @@ class A() {
}
fun box() = (A() is A)
fun box(): String {
assertEquals(true, A() is A)
return "OK"
}
+4 -1
View File
@@ -8,4 +8,7 @@ class B() : A() {
}
fun box() = (A() !is B)
fun box(): String {
assertEquals(true, A() !is B)
return "OK"
}