Skip to content

Commit

Permalink
Inject child port refs as mutable if they are input
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaye committed Aug 11, 2022
1 parent d81d8a6 commit a38447c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ ${" | "..declareChildConnections()}
depKind != DepKind.Effects && this in n.effects

private fun ReactorComponent.isInjectedAsMut(depKind: DepKind): Boolean =
depKind == DepKind.Effects && (this is PortData || this is ActionData)
depKind == DepKind.Effects && (this is PortData || this is ActionData || (this is ChildPortReference && isInput))

/**
* Whether this component may be unused in a reaction.
Expand Down

0 comments on commit a38447c

Please sign in to comment.