This commit is contained in:
Zahary Karadjov 2013-08-07 00:01:58 +03:00
commit 5c32156a71
2 changed files with 8 additions and 3 deletions

View file

@ -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