ignore nkCommentStmt in lambda lifting
This commit is contained in:
parent
4338f86acb
commit
2851f316f6
1 changed files with 1 additions and 1 deletions
|
|
@ -465,7 +465,7 @@ proc detectCapturedVars(n: PNode; owner: PSym; c: var DetectionPass) =
|
||||||
w = up
|
w = up
|
||||||
of nkEmpty..pred(nkSym), succ(nkSym)..nkNilLit,
|
of nkEmpty..pred(nkSym), succ(nkSym)..nkNilLit,
|
||||||
nkTemplateDef, nkTypeSection, nkProcDef, nkMethodDef,
|
nkTemplateDef, nkTypeSection, nkProcDef, nkMethodDef,
|
||||||
nkConverterDef, nkMacroDef, nkFuncDef:
|
nkConverterDef, nkMacroDef, nkFuncDef, nkCommentStmt:
|
||||||
discard
|
discard
|
||||||
of nkLambdaKinds, nkIteratorDef:
|
of nkLambdaKinds, nkIteratorDef:
|
||||||
if n.typ != nil:
|
if n.typ != nil:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue