b454fcc1e0
This is needed to avoid clashes between different dumps from different handlers
14 lines
282 B
Kotlin
Vendored
14 lines
282 B
Kotlin
Vendored
fun testScalar(a: Any): IntArray {
|
|
when {
|
|
a !is Int -> return intArrayOf()
|
|
}
|
|
return intArrayOf(elements = [a /*as Int */])
|
|
}
|
|
|
|
fun testSpread(a: Any): IntArray {
|
|
when {
|
|
a !is IntArray -> return intArrayOf()
|
|
}
|
|
return intArrayOf(elements = [*a /*as IntArray */])
|
|
}
|