[IR] add testdata for dumpKotlinLike
This commit is contained in:
committed by
teamcityserver
parent
d2022ab115
commit
8d5facb15f
@@ -0,0 +1,14 @@
|
||||
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 */])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user