fixes #534
This commit is contained in:
parent
015b814e6a
commit
5c32156a71
2 changed files with 8 additions and 3 deletions
|
|
@ -1361,7 +1361,9 @@ proc semQuoteAst(c: PContext, n: PNode): PNode =
|
|||
ids = newSeq[PNode]()
|
||||
# this will store the generated param names
|
||||
|
||||
internalAssert doBlk.kind == nkDo
|
||||
if doBlk.kind != nkDo:
|
||||
LocalError(n.info, errXExpected, "block")
|
||||
|
||||
processQuotations(doBlk.sons[bodyPos], op, quotes, ids)
|
||||
|
||||
doBlk.sons[namePos] = newAnonSym(skTemplate, n.info).newSymNode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue