mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
fixes #11175
This commit is contained in:
@@ -1927,7 +1927,9 @@ proc processQuotations(c: PContext; n: var PNode, op: string,
|
||||
processQuotations(c, n.sons[i], op, quotes, ids)
|
||||
|
||||
proc semQuoteAst(c: PContext, n: PNode): PNode =
|
||||
internalAssert c.config, n.len == 2 or n.len == 3
|
||||
if n.len != 2 and n.len != 3:
|
||||
localError(c.config, n.info, "'quote' expects 1 or 2 arguments")
|
||||
return n
|
||||
# We transform the do block into a template with a param for
|
||||
# each interpolation. We'll pass this template to getAst.
|
||||
var
|
||||
|
||||
Reference in New Issue
Block a user