[PSI2IR] Numeric promotion doesn't involve context receivers
This commit is contained in:
committed by
TeamCityServer
parent
a760865767
commit
a59b9e78ac
+2
-1
@@ -81,6 +81,7 @@ fun IrExpression.safeCallOnDispatchReceiver(
|
|||||||
contextReceivers = emptyList(),
|
contextReceivers = emptyList(),
|
||||||
dispatchReceiver = OnceExpressionValue(this),
|
dispatchReceiver = OnceExpressionValue(this),
|
||||||
isStatement = false
|
isStatement = false
|
||||||
).call { dispatchReceiverValue, _, _ ->
|
).call { dispatchReceiverValue, _, contextReceiverValues ->
|
||||||
|
assert(contextReceiverValues.isEmpty()) { "Context receivers in numeric promotion" }
|
||||||
ifNotNull(dispatchReceiverValue!!.load())
|
ifNotNull(dispatchReceiverValue!!.load())
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user