fixes an valid 'T' is not used hint
This commit is contained in:
parent
38307a1f33
commit
5f623ea9ef
1 changed files with 2 additions and 1 deletions
|
|
@ -153,7 +153,8 @@ proc ensureNoMissingOrUnusedSymbols(scope: PScope) =
|
||||||
if s.kind notin {skForVar, skParam, skMethod, skUnknown, skGenericParam}:
|
if s.kind notin {skForVar, skParam, skMethod, skUnknown, skGenericParam}:
|
||||||
# XXX: implicit type params are currently skTypes
|
# XXX: implicit type params are currently skTypes
|
||||||
# maybe they can be made skGenericParam as well.
|
# maybe they can be made skGenericParam as well.
|
||||||
if s.typ != nil and tfImplicitTypeParam notin s.typ.flags:
|
if s.typ != nil and tfImplicitTypeParam notin s.typ.flags and
|
||||||
|
s.typ.kind != tyGenericParam:
|
||||||
message(s.info, hintXDeclaredButNotUsed, getSymRepr(s))
|
message(s.info, hintXDeclaredButNotUsed, getSymRepr(s))
|
||||||
s = nextIter(it, scope.symbols)
|
s = nextIter(it, scope.symbols)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue