mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-15 08:03:46 +00:00
Apply suggestions from code review
This commit is contained in:
@@ -2450,7 +2450,7 @@ proc semQuoteAst(c: PContext, n: PNode): PNode =
|
||||
# don't allow templates to capture syms without backticks
|
||||
let oldScope = c.currentScope
|
||||
# c.currentScope = PScope(parent: nil, symbols: initStrTable(), depthLevel: 0)
|
||||
if c.p.owner.kind in routineKinds:
|
||||
if c.p.owner != nil and c.p.owner.kind in routineKinds:
|
||||
# skips the current routine scopes
|
||||
block exitLabel:
|
||||
while c.currentScope != nil:
|
||||
|
||||
Reference in New Issue
Block a user