Files
kotlin-fork/compiler/testData/ir/irText/firProblems/IntArrayAsVararg.kt.txt
T
Dmitriy Dolovov 05cbe66ee0 [FIR][tests] Unify IntArrayAsVararg.kt test between K1 and K2
Rename `main` function to `test` to avoid running JVM-specific mangling
and having different IR signature dumps for K1 and K2.

^KT-65588
2024-02-14 23:00:04 +00:00

8 lines
146 B
Kotlin
Vendored

fun test() {
consumeVarargs(arr = [1, 2])
consumeVarargs(arr = [*intArrayOf(elements = [41, 42])])
}
fun consumeVarargs(vararg arr: Int) {
}