diff options
author | Andrii Riabushenko <cdome@bk.ru> | 2018-12-09 00:05:57 +0000 |
---|---|---|
committer | Andrii Riabushenko <cdome@bk.ru> | 2018-12-09 00:05:57 +0000 |
commit | e03fb08c24b33a6e25d61da93ae07bd08c9ae648 (patch) | |
tree | e31ad5a97107289e6f03d363d013ccba66ffd6fa | |
parent | 5f9234e5cbea12e01286d0789dc4ae6d4b537dbb (diff) | |
download | Nim-e03fb08c24b33a6e25d61da93ae07bd08c9ae648.tar.gz |
change approach
-rw-r--r-- | compiler/lookups.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/lookups.nim b/compiler/lookups.nim index 91d6bd745..db03ac2e0 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 |