fixes #7215
This commit is contained in:
parent
83a8019027
commit
89782460a3
3 changed files with 7 additions and 4 deletions
|
|
@ -711,7 +711,7 @@ proc mapLitsImpl(constructor: NimNode; op: NimNode; nested: bool;
|
|||
result.add op
|
||||
result.add constructor
|
||||
else:
|
||||
result = newNimNode(constructor.kind, lineInfoFrom=constructor)
|
||||
result = copyNimNode(constructor)
|
||||
for v in constructor:
|
||||
if nested or v.kind in filter:
|
||||
result.add mapLitsImpl(v, op, nested, filter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue