JS/RTTI: use generation for rtti test
This commit is contained in:
committed by
Alexey Andreev
parent
0b9c041d0a
commit
c6cf6a0df7
+4
-1
@@ -4,4 +4,7 @@ class A() {
|
||||
|
||||
}
|
||||
|
||||
fun box() = (A() is A)
|
||||
fun box(): String {
|
||||
assertEquals(true, A() is A)
|
||||
return "OK"
|
||||
}
|
||||
+4
-1
@@ -8,4 +8,7 @@ class B() : A() {
|
||||
|
||||
}
|
||||
|
||||
fun box() = (A() !is B)
|
||||
fun box(): String {
|
||||
assertEquals(true, A() !is B)
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user