diff --git a/compiler/lookups.nim b/compiler/lookups.nim index 1e9d963fa5..1b5bee0081 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: diff --git a/tests/modules/t8665.nim b/tests/modules/t8665.nim new file mode 100644 index 0000000000..51538df791 --- /dev/null +++ b/tests/modules/t8665.nim @@ -0,0 +1 @@ +import treorder