From e03fb08c24b33a6e25d61da93ae07bd08c9ae648 Mon Sep 17 00:00:00 2001 From: Andrii Riabushenko Date: Sun, 9 Dec 2018 00:05:57 +0000 Subject: [PATCH] change approach --- compiler/lookups.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/lookups.nim b/compiler/lookups.nim index 91d6bd7452..db03ac2e05 100644 --- a/compiler/lookups.nim +++ b/compiler/lookups.nim @@ -169,8 +169,7 @@ proc ensureNoMissingOrUnusedSymbols(c: PContext; scope: PScope) = getSymRepr(c.config, s)) inc missingImpls elif {sfUsed, sfExported} * s.flags == {}: - if s.kind notin {skForVar, skParam, skMethod, skUnknown, skGenericParam} and - not (s.kind == skEnumField and {sfUsed, sfExported} * s.owner.flags != {}): + if s.kind notin {skForVar, skParam, skMethod, skUnknown, skGenericParam, skEnumField}: # XXX: implicit type params are currently skTypes # maybe they can be made skGenericParam as well. if s.typ != nil and tfImplicitTypeParam notin s.typ.flags and