bootstrapping works again
This commit is contained in:
parent
57149a4794
commit
870b03707b
1 changed files with 4 additions and 2 deletions
|
|
@ -608,8 +608,10 @@ proc liftCapturedVars(n: PNode; owner: PSym; d: DetectionPass;
|
|||
of nkProcDef, nkMethodDef, nkConverterDef, nkMacroDef:
|
||||
discard
|
||||
of nkLambdaKinds, nkIteratorDef:
|
||||
if n.typ != nil:
|
||||
discard liftCapturedVars(n[namePos], owner, d, c)
|
||||
if n.typ != nil and n[namePos].kind == nkSym:
|
||||
let m = newSymNode(n[namePos].sym)
|
||||
m.typ = n.typ
|
||||
result = liftCapturedVars(m, owner, d, c)
|
||||
else:
|
||||
if owner.isIterator and n.kind == nkYieldStmt:
|
||||
result = transformYield(n, owner, d, c)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue