Revert "[FE 1.0] Resolve collection literals through the new type inference infra"

This reverts commit a542de715a.
This commit is contained in:
Mikhail Glukhikh
2022-09-12 11:28:39 +02:00
committed by Space
parent 707bfbed19
commit c699896b0f
@@ -261,21 +261,16 @@ public class CallResolver {
@NotNull Collection<FunctionDescriptor> functionDescriptors @NotNull Collection<FunctionDescriptor> functionDescriptors
) { ) {
BasicCallResolutionContext callResolutionContext = BasicCallResolutionContext.create(context, call, CheckArgumentTypesMode.CHECK_VALUE_ARGUMENTS); BasicCallResolutionContext callResolutionContext = BasicCallResolutionContext.create(context, call, CheckArgumentTypesMode.CHECK_VALUE_ARGUMENTS);
List<OldResolutionCandidate<FunctionDescriptor>> candidates = CollectionsKt.map(functionDescriptors, descriptor ->
OverloadResolutionResults<FunctionDescriptor> resolutionResults = PSICallResolver.runResolutionAndInferenceForGivenDescriptors( OldResolutionCandidate.create(
callResolutionContext, call,
functionDescriptors, descriptor,
TracingStrategyImpl.create(expression, call),
null, null,
null ExplicitReceiverKind.NO_EXPLICIT_RECEIVER,
); null));
if (resolutionResults.isSingleResult()) { return computeTasksFromCandidatesAndResolvedCall(
context.trace.record(BindingContext.RESOLVED_CALL, call, resolutionResults.getResultingCall()); callResolutionContext, candidates, TracingStrategyImpl.create(expression, call));
context.trace.record(BindingContext.CALL, call.getCallElement(), call);
}
return resolutionResults;
} }
@NotNull @NotNull