Files
kotlin-fork/compiler/testData/codegen/box/vararg/kt37715.kt
T
Alexander Udalov 1071919706 Remove backend tests on old inference
Also remove any mentions of NewInference, and rename some tests.
2021-11-09 20:07:33 +01:00

12 lines
181 B
Kotlin
Vendored

// WITH_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"
}