[PSI2IR] Revert synthetic property accessor call adjustment do can't have CR

This commit is contained in:
Anastasiya Shadrina
2021-11-17 20:07:30 +07:00
committed by TeamCityServer
parent 7a86b4f20a
commit 229a009828
@@ -29,9 +29,6 @@ fun CallReceiver.adjustForCallee(callee: CallableMemberDescriptor): CallReceiver
object : CallReceiver {
override fun call(withDispatchAndExtensionAndContextReceivers: (IntermediateValue?, IntermediateValue?, List<IntermediateValue>) -> IrExpression): IrExpression =
this@adjustForCallee.call { dispatchReceiverValue, extensionReceiverValue, contextReceiverValues ->
assert(contextReceiverValues.isEmpty()) {
"Synthetic property accessor call adjustment with context receivers, callee: $callee"
}
val numReceiversPresent = listOfNotNull(dispatchReceiverValue, extensionReceiverValue).size
val numReceiversExpected = listOfNotNull(callee.dispatchReceiverParameter, callee.extensionReceiverParameter).size
if (numReceiversPresent != numReceiversExpected)