summary refs log tree commit diff stats
path: root/nim/semtempl.pas
diff options
context:
space:
mode:
Diffstat (limited to 'nim/semtempl.pas')
-rw-r--r--nim/semtempl.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/nim/semtempl.pas b/nim/semtempl.pas
index c07a7bd13..ebc5e1ebb 100644
--- a/nim/semtempl.pas
+++ b/nim/semtempl.pas
@@ -164,7 +164,7 @@ var
   i, j, len, counter: int;
   params, p, paramKind: PNode;
 begin
-  if c.p.owner = nil then begin
+  if c.p.owner.kind = skModule then begin
     s := semIdentVis(c, skTemplate, n.sons[0], {@set}[sfStar]);
     include(s.flags, sfGlobal);
   end