[NI] Fix construction of common system for builder inference

This commit is contained in:
Mikhail Zarechenskiy
2020-01-28 14:09:09 +03:00
parent e3b6104489
commit e42f16c95c
8 changed files with 53 additions and 15 deletions
@@ -111,9 +111,11 @@ class KotlinToResolvedCallTransformer(
context.trace.record(BindingContext.ONLY_RESOLVED_CALL, psiCall, PartialCallContainer(baseResolvedCall))
context.trace.record(BindingContext.PARTIAL_CALL_RESOLUTION_CONTEXT, psiCall, context)
context.inferenceSession.addPartialCallInfo(
PSIPartialCallInfo(baseResolvedCall, context, tracingStrategy)
)
if (baseResolvedCall.forwardToInferenceSession) {
context.inferenceSession.addPartialCallInfo(
PSIPartialCallInfo(baseResolvedCall, context, tracingStrategy),
)
}
createStubResolvedCallAndWriteItToTrace(candidate, context.trace, baseResolvedCall.diagnostics, substitutor = null)
}