Files
kotlin-fork/compiler/testData/codegen/box/vararg/kt37715.kt
T
Ilya Chernikov 4a0d1b0b9d Use precalculated intersection type in JVM backend
also test all backends for the problem in the issue
#KT-37715 fixed
2020-04-29 11:12:22 +02:00

13 lines
223 B
Kotlin
Vendored

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