[test] Move irJsText tests to irText directory
So that all irText tests could be found in one place
This commit is contained in:
committed by
Space Team
parent
ebafdd3af0
commit
17a8fd2c0b
@@ -0,0 +1,14 @@
|
||||
fun test1(d: dynamic): Int {
|
||||
return when {
|
||||
d is String -> d /*~> String */.<get-length>()
|
||||
else -> -1
|
||||
}
|
||||
}
|
||||
|
||||
fun test2(d: dynamic): Int {
|
||||
return when {
|
||||
d is Array<*> -> d /*~> Array<out Any?> */.<get-size>()
|
||||
else -> -1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user