diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2018-08-21 14:51:23 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-08-21 14:51:23 +0200 |
commit | bbe5e8326b9f307e857b28d4b27fe9b1ec6a08c0 (patch) | |
tree | 0f963a6495f826dbb1016c9d6cc6bf870e35bc33 /compiler | |
parent | 0dd31a4f977f4220f6f510520db236863ba9bff7 (diff) | |
download | Nim-bbe5e8326b9f307e857b28d4b27fe9b1ec6a08c0.tar.gz |
sfForward is also sfReorder for skModule symbols (#8692)
Take this into account while searching for undefined forward references. Fixes #8665
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/lookups.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/lookups.nim b/compiler/lookups.nim index 1e9d963fa..1b5bee008 100644 --- a/compiler/lookups.nim +++ b/compiler/lookups.nim @@ -161,7 +161,7 @@ proc ensureNoMissingOrUnusedSymbols(c: PContext; scope: PScope) = var s = initTabIter(it, scope.symbols) var missingImpls = 0 while s != nil: - if sfForward in s.flags and s.kind != skType: + if sfForward in s.flags and s.kind notin {skType, skModule}: # too many 'implementation of X' errors are annoying # and slow 'suggest' down: if missingImpls == 0: |