diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-02-22 18:28:40 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-02-22 18:28:49 +0100 |
commit | 15c208cd29313c0888900644f0d516541d3832fc (patch) | |
tree | 26e9b479b808689870d8358fba7007c1a3795118 /compiler/semtempl.nim | |
parent | 4fb73e6d8ff153743cff7c5385ee36a13dc3deec (diff) | |
download | Nim-15c208cd29313c0888900644f0d516541d3832fc.tar.gz |
it's spelt callsite
Diffstat (limited to 'compiler/semtempl.nim')
-rw-r--r-- | compiler/semtempl.nim | 5 |
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) |