[NI] Builder-inference: fix unresolved reference for variable calls

This commit is contained in:
Mikhail Zarechenskiy
2019-03-28 03:20:52 +03:00
parent d6db1a1b35
commit 017f9aea35
5 changed files with 44 additions and 5 deletions
@@ -162,14 +162,14 @@ class CoroutineInferenceSession(
val nonFixedTypesToResultSubstitutor = ComposedSubstitutor(commonSystemSubstitutor, nonFixedToVariablesSubstitutor)
for (completedCall in commonCalls) {
val resultCallAtom = completedCall.callResolutionResult.resultCallAtom
val call = resultCallAtom.atom.getResolvedPsiKotlinCall<CallableDescriptor>(trace) ?: continue
updateCall(completedCall, nonFixedTypesToResultSubstitutor, nonFixedTypesToResult)
val resultingDescriptor = call.resultingDescriptor
kotlinToResolvedCallTransformer.reportCallDiagnostic(
completedCall.context, trace, resultCallAtom, resultingDescriptor, commonSystem.diagnostics
completedCall.context,
trace,
completedCall.callResolutionResult.resultCallAtom,
completedCall.resolvedCall.resultingDescriptor,
commonSystem.diagnostics
)
}