diff options
author | Araq <rumpf_a@web.de> | 2015-07-22 18:01:05 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-07-22 18:01:05 +0200 |
commit | e6e0527fd2ee23519bfad994a12b4776fe627a84 (patch) | |
tree | 136af47f02f424a906b523c917e03ae2ea50e343 | |
parent | 8594faa5436b2dea56288fa4668259e88f48f9fc (diff) | |
download | Nim-e6e0527fd2ee23519bfad994a12b4776fe627a84.tar.gz |
fixes #1738
-rw-r--r-- | compiler/semtempl.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtempl.nim b/compiler/semtempl.nim index 161d22fc1..2358010a1 100644 --- a/compiler/semtempl.nim +++ b/compiler/semtempl.nim @@ -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: |