fixes regressions
This commit is contained in:
parent
cd707084d1
commit
0844941b35
2 changed files with 4 additions and 1 deletions
|
|
@ -735,6 +735,8 @@ proc transform(c: PTransf, n: PNode): PTransNode =
|
|||
var s = n.sons[namePos].sym
|
||||
if n.typ != nil and s.typ.callConv == ccClosure:
|
||||
result = transformSym(c, n.sons[namePos])
|
||||
# use the same node as before if still a symbol:
|
||||
if result.PNode.kind == nkSym: result = PTransNode(n)
|
||||
else:
|
||||
result = PTransNode(n)
|
||||
of nkMacroDef:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue