[NI] Remove captured type approximation in type arguments of resolved call
This commit is contained in:
committed by
Mikhail Zarechenskiy
parent
421fda6e92
commit
65380f4eb4
+1
-1
@@ -674,7 +674,7 @@ class NewResolvedCallImpl<D : CallableDescriptor>(
|
||||
typeArguments = resolvedCallAtom.substitutor.freshVariables.map {
|
||||
val substituted = (substitutor ?: FreshVariableNewTypeSubstitutor.Empty).safeSubstitute(it.defaultType)
|
||||
TypeApproximator(substituted.constructor.builtIns)
|
||||
.approximateToSuperType(substituted, TypeApproximatorConfiguration.CapturedAndIntegerLiteralsTypesApproximation)
|
||||
.approximateToSuperType(substituted, TypeApproximatorConfiguration.IntegerLiteralsTypesApproximation)
|
||||
?: substituted
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user