Files
kotlin-fork/compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt
T
Sergej Jaskiewicz 7abc6af124 [FIR, IR] Fix name mangling for dynamic types
^KT-57566 Fixed
2023-05-25 10:23:33 +00:00

6 lines
157 B
Kotlin
Vendored

// TARGET_BACKEND: JS_IR
// WITH_STDLIB
fun test1(d: dynamic) = if (d is String) d.length else -1
fun test2(d: dynamic) = if (d is Array<*>) d.size else -1