mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 15:54:03 +00:00
5 lines
133 B
Kotlin
Vendored
5 lines
133 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
fun test1(d: dynamic) = if (d is String) d.length else -1
|
|
|
|
fun test2(d: dynamic) = if (d is Array<*>) d.size else -1 |