This commit is contained in:
Araq
2015-07-22 18:01:05 +02:00
parent 8594faa543
commit e6e0527fd2

View File

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