diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-07-19 01:06:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-19 01:06:45 +0200 |
commit | a5d6080a81486412e7567658fa816c475e27e42c (patch) | |
tree | ae4d5349c81e33bd83cfe8c3ea94bc0c5e684100 /compiler/semtempl.nim | |
parent | 6d8913ee1422143baebd438f7526208193c0bd5e (diff) | |
parent | fbb0642e278efd1b9ac4175228befc58655c3849 (diff) | |
download | Nim-a5d6080a81486412e7567658fa816c475e27e42c.tar.gz |
Merge pull request #11766 from nim-lang/araq-detect-unused-imports
[feature] detect unused imports
Diffstat (limited to 'compiler/semtempl.nim')
-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 7a56f8c45..1b9b9e8a9 100644 --- a/compiler/semtempl.nim +++ b/compiler/semtempl.nim @@ -64,7 +64,7 @@ proc symChoice(c: PContext, n: PNode, s: PSym, r: TSymChoiceRule): PNode = # (s.kind notin routineKinds or s.magic != mNone): # for instance 'nextTry' is both in tables.nim and astalgo.nim ... result = newSymNode(s, info) - markUsed(c.config, info, s, c.graph.usageSym) + markUsed(c, info, s, c.graph.usageSym) onUse(info, s) else: # semantic checking requires a type; ``fitNode`` deals with it |