FIR: Fix behavior for context-receiver contained super class constructor

^KT-51889 Fixed
This commit is contained in:
Denis.Zharkov
2022-04-29 18:23:11 +03:00
committed by teamcity
parent 299c02a822
commit 9ec2411218
7 changed files with 39 additions and 15 deletions
@@ -648,6 +648,7 @@ class FirCallResolver(
if (symbol is FirConstructorSymbol && symbol.fir.isInner) {
transformDispatchReceiver(StoreReceiver, singleCandidate.dispatchReceiverExpression())
}
replaceContextReceiverArguments(singleCandidate.contextReceiverArguments())
}
}
}
@@ -67,6 +67,7 @@ sealed class CallKind(vararg resolutionSequence: ResolutionStage) {
CollectTypeVariableUsagesInfo,
CheckDispatchReceiver,
CheckExtensionReceiver,
CheckContextReceivers,
CheckDslScopeViolation,
CheckArguments,
EagerResolveOfCallableReferences,