[FIR] Fix expected type in invoke completion

This commit is contained in:
Dmitriy Novozhilov
2019-08-02 17:24:19 +03:00
parent 57a2665b00
commit f877fe40b3
2 changed files with 3 additions and 3 deletions
@@ -395,7 +395,7 @@ open class FirBodyResolveTransformer(
val resultExplicitReceiver = resultExpression.explicitReceiver
if (initialExplicitReceiver !== resultExplicitReceiver && resultExplicitReceiver is FirQualifiedAccess) {
// name.invoke() case
callCompleter.completeCall(resultExplicitReceiver, null)
callCompleter.completeCall(resultExplicitReceiver, noExpectedType)
}
callCompleter.completeCall(resultExpression, expectedTypeRef)
} catch (e: Throwable) {