ignore nkCommentStmt in lambda lifting

This commit is contained in:
Andreas Rumpf
2019-02-06 22:00:06 +01:00
parent 4338f86acb
commit 2851f316f6

View File

@@ -465,7 +465,7 @@ proc detectCapturedVars(n: PNode; owner: PSym; c: var DetectionPass) =
w = up
of nkEmpty..pred(nkSym), succ(nkSym)..nkNilLit,
nkTemplateDef, nkTypeSection, nkProcDef, nkMethodDef,
nkConverterDef, nkMacroDef, nkFuncDef:
nkConverterDef, nkMacroDef, nkFuncDef, nkCommentStmt:
discard
of nkLambdaKinds, nkIteratorDef:
if n.typ != nil: