Skip to content

Commit

Permalink
Fix dispatch receiver selection for properties with a backing field
Browse files Browse the repository at this point in the history
  • Loading branch information
IVIanuu committed Feb 28, 2024
1 parent 75e64f8 commit eb4f28e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ class InjectCallTransformer(
element.extensionReceiverParameter!!.symbol
symbol.name == DISPATCH_RECEIVER_NAME &&
element is IrProperty &&
allScopes.getOrNull(allScopes.indexOf(scope) + 1)?.irElement !is IrField &&
element.getter!!.dispatchReceiverParameter?.type?.classOrFail?.toFirSymbol<FirClassSymbol<*>>() == originalInjectableClassifier ->
element.getter!!.dispatchReceiverParameter!!.symbol
symbol.name == EXTENSION_RECEIVER_NAME &&
Expand Down

0 comments on commit eb4f28e

Please sign in to comment.