summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2018-12-27 13:40:09 -0800
committerAndreas Rumpf <rumpf_a@web.de>2018-12-27 22:40:09 +0100
commit1b7c8482fef98a9e1c0e4a61e7e928a3e4890192 (patch)
tree628d40ebfc38c5165ec53609dec341ea0279778d /compiler
parent05b8085a873ad0d8e5e823d35a0b043997e873df (diff)
downloadNim-1b7c8482fef98a9e1c0e4a61e7e928a3e4890192.tar.gz
fixes #10101 (#10103)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/lookups.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/lookups.nim b/compiler/lookups.nim
index db03ac2e0..11a741505 100644
--- a/compiler/lookups.nim
+++ b/compiler/lookups.nim
@@ -174,7 +174,7 @@ proc ensureNoMissingOrUnusedSymbols(c: PContext; scope: PScope) =
         # maybe they can be made skGenericParam as well.
         if s.typ != nil and tfImplicitTypeParam notin s.typ.flags and
            s.typ.kind != tyGenericParam:
-          message(c.config, s.info, hintXDeclaredButNotUsed, getSymRepr(c.config, s))
+          message(c.config, s.info, hintXDeclaredButNotUsed, s.name.s)
     s = nextIter(it, scope.symbols)
 
 proc wrongRedefinition*(c: PContext; info: TLineInfo, s: string;