Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Jan 24, 2025
1 parent b66ff0b commit 1a16f55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/semexprs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2453,14 +2453,14 @@ proc semQuoteAst(c: PContext, n: PNode): PNode =
if c.p.owner != nil and c.p.owner.kind in routineKinds:
# skips the current routine scopes
block exitLabel:
while c.currentScope != nil:
c.currentScope = c.currentScope.parent
while c.currentScope != c.topLevelScope:
block continueLabel:
for s in items(c.currentScope.symbols):
if s.owner != c.p.owner:
break exitLabel
else:
break continueLabel
c.currentScope = c.currentScope.parent
var tmpl = semTemplateDef(c, dummyTemplate)
c.currentScope = oldScope
quotes[0] = tmpl[namePos]
Expand Down

0 comments on commit 1a16f55

Please sign in to comment.