change approach
This commit is contained in:
parent
5f9234e5cb
commit
e03fb08c24
1 changed files with 1 additions and 2 deletions
|
|
@ -169,8 +169,7 @@ proc ensureNoMissingOrUnusedSymbols(c: PContext; scope: PScope) =
|
||||||
getSymRepr(c.config, s))
|
getSymRepr(c.config, s))
|
||||||
inc missingImpls
|
inc missingImpls
|
||||||
elif {sfUsed, sfExported} * s.flags == {}:
|
elif {sfUsed, sfExported} * s.flags == {}:
|
||||||
if s.kind notin {skForVar, skParam, skMethod, skUnknown, skGenericParam} and
|
if s.kind notin {skForVar, skParam, skMethod, skUnknown, skGenericParam, skEnumField}:
|
||||||
not (s.kind == skEnumField and {sfUsed, sfExported} * s.owner.flags != {}):
|
|
||||||
# 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 and
|
if s.typ != nil and tfImplicitTypeParam notin s.typ.flags and
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue