summary refs log tree commit diff stats
path: root/compiler/semtempl.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-02-22 18:28:40 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-02-22 18:28:49 +0100
commit15c208cd29313c0888900644f0d516541d3832fc (patch)
tree26e9b479b808689870d8358fba7007c1a3795118 /compiler/semtempl.nim
parent4fb73e6d8ff153743cff7c5385ee36a13dc3deec (diff)
downloadNim-15c208cd29313c0888900644f0d516541d3832fc.tar.gz
it's spelt callsite
Diffstat (limited to 'compiler/semtempl.nim')
-rw-r--r--compiler/semtempl.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/semtempl.nim b/compiler/semtempl.nim
index f180b5373..dae2833ec 100644
--- a/compiler/semtempl.nim
+++ b/compiler/semtempl.nim
@@ -559,8 +559,9 @@ proc semTemplateDef(c: PContext, n: PNode): PNode =
   else:
     s = semIdentVis(c, skTemplate, n.sons[0], {})
 
-  if s.owner != nil and s.owner.name.s == "system" and s.name.s in ["!=", ">=", ">", "incl", "excl", "in", "notin", "isnot"]:
-    incl(s.flags, sfCallSideLineinfo)
+  if s.owner != nil and sfSystemModule in s.owner.flags and
+      s.name.s in ["!=", ">=", ">", "incl", "excl", "in", "notin", "isnot"]:
+    incl(s.flags, sfCallsite)
 
   styleCheckDef(c.config, s)
   onDef(n[0].info, s)