[NI] Keep track of fresh type variables created for particular call candidate
Otherwise we can't obtain inferred type arguments for the call, which is required for reification.
This commit is contained in:
committed by
Stanislav Erokhin
parent
eb7e9196b5
commit
13e8720ddc
+1
-6
@@ -350,12 +350,7 @@ class NewResolvedCallImpl<D : CallableDescriptor>(
|
||||
|
||||
override fun getTypeArguments(): Map<TypeParameterDescriptor, KotlinType> {
|
||||
val typeParameters = candidateDescriptor.typeParameters.takeIf { it.isNotEmpty() } ?: return emptyMap()
|
||||
|
||||
val result = HashMap<TypeParameterDescriptor, UnwrappedType>()
|
||||
for ((parameter, argument) in typeParameters.zip(completedCall.typeArguments)) {
|
||||
result[parameter] = argument
|
||||
}
|
||||
return result
|
||||
return typeParameters.zip(completedCall.typeArguments).toMap()
|
||||
}
|
||||
|
||||
override fun getSmartCastDispatchReceiverType(): KotlinType? = null // todo
|
||||
|
||||
Reference in New Issue
Block a user