fixes system.add for strict funcs (#15259)
* fixes system.add for strict funcs * fixes #15248
This commit is contained in:
parent
3172ca5475
commit
48f2997221
2 changed files with 21 additions and 19 deletions
|
|
@ -342,7 +342,7 @@ proc deps(c: var Partitions; dest, src: PNode) =
|
|||
let destIsComplex = types.searchTypeFor(dest.typ, wrap)
|
||||
|
||||
for t in targets:
|
||||
if dest.kind != nkSym:
|
||||
if dest.kind != nkSym and c.inNoSideEffectSection == 0:
|
||||
potentialMutation(c, t, dest.info)
|
||||
|
||||
if destIsComplex:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue