sfForward is also sfReorder for skModule symbols (#8692)

Take this into account while searching for undefined forward references.

Fixes #8665
This commit is contained in:
LemonBoy
2018-08-21 14:51:23 +02:00
committed by Andreas Rumpf
parent 0dd31a4f97
commit bbe5e8326b
2 changed files with 2 additions and 1 deletions

View File

@@ -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:

1
tests/modules/t8665.nim Normal file
View File

@@ -0,0 +1 @@
import treorder