fixes unexpected transforming of runnableExamples (#9158)
This commit is contained in:
parent
33458894da
commit
173e8c4913
3 changed files with 9 additions and 7 deletions
|
|
@ -493,7 +493,9 @@ proc semTemplBody(c: var TemplCtx, n: PNode): PNode =
|
|||
else:
|
||||
result = semTemplBodySons(c, n)
|
||||
of nkCallKinds-{nkPostfix}:
|
||||
result = semTemplBodySons(c, n)
|
||||
# do not transform runnableExamples (bug #9143)
|
||||
if not isRunnableExamples(n[0]):
|
||||
result = semTemplBodySons(c, n)
|
||||
of nkDotExpr, nkAccQuoted:
|
||||
# dotExpr is ambiguous: note that we explicitly allow 'x.TemplateParam',
|
||||
# so we use the generic code for nkDotExpr too
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue