mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-04 19:04:46 +00:00
remove duplicate assignment (#21050)
`newNodeIT` has already assigned `n.typ` to x.
This commit is contained in:
@@ -68,7 +68,6 @@ proc newTransNode(kind: TNodeKind, n: PNode,
|
||||
sons: int): PNode {.inline.} =
|
||||
var x = newNodeIT(kind, n.info, n.typ)
|
||||
newSeq(x.sons, sons)
|
||||
x.typ = n.typ
|
||||
# x.flags = n.flags
|
||||
result = x
|
||||
|
||||
|
||||
Reference in New Issue
Block a user