Use precalculated intersection type in JVM backend

also test all backends for the problem in the issue
#KT-37715 fixed
This commit is contained in:
Ilya Chernikov
2020-04-27 18:40:19 +02:00
parent 45ac81c585
commit 4a0d1b0b9d
8 changed files with 45 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
// !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"
}