Files
kotlin-fork/compiler/testData/codegen/box/vararg/kt37715.kt
T

16 lines
309 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: STDLIB_COLLECTIONS
// !LANGUAGE: +NewInference
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
// IR_DUMP
import kotlin.collections.toList
fun <T: Number> foo(vararg values: T) = values.toList()
fun box(): String {
val a = foo(1, 4.5)
return "OK"
}