[FIR JS] KT-57200: Allow dynamic varargs

^KT-57200 Fixed
This commit is contained in:
Nikolay Lunyak
2023-03-09 11:08:32 +02:00
committed by Space Team
parent 5d664aac92
commit b385d787cc
9 changed files with 53 additions and 56 deletions
@@ -10,7 +10,7 @@ import org.jetbrains.kotlin.types.AbstractTypeChecker
object ConeTypeIntersector {
fun intersectTypes(
context: ConeInferenceContext,
types: List<ConeKotlinType>
types: Collection<ConeKotlinType>
): ConeKotlinType {
when (types.size) {
0 -> error("Expected some types")