fixes #1738
This commit is contained in:
parent
8594faa543
commit
e6e0527fd2
1 changed files with 1 additions and 1 deletions
|
|
@ -475,7 +475,7 @@ proc transformToExpr(n: PNode): PNode =
|
|||
|
||||
proc semTemplateDef(c: PContext, n: PNode): PNode =
|
||||
var s: PSym
|
||||
if c.p.owner.kind == skModule:
|
||||
if isTopLevel(c):
|
||||
s = semIdentVis(c, skTemplate, n.sons[0], {sfExported})
|
||||
incl(s.flags, sfGlobal)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue