diff --git a/compiler/sem/lambdalifting.nim b/compiler/sem/lambdalifting.nim index 780b99972b8..669c8d23cf7 100644 --- a/compiler/sem/lambdalifting.nim +++ b/compiler/sem/lambdalifting.nim @@ -494,6 +494,8 @@ proc detectCapturedVars(n: PNode; owner: PSym; c: var DetectionPass) = detectCapturedVars(n[namePos], owner, c) of nkReturnStmt: detectCapturedVars(n[0], owner, c) + of nkNimNodeLit: + discard "skip node literals as they're data not code" else: for i in 0..