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:
parent
0dd31a4f97
commit
bbe5e8326b
2 changed files with 2 additions and 1 deletions
|
|
@ -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
1
tests/modules/t8665.nim
Normal file
|
|
@ -0,0 +1 @@
|
|||
import treorder
|
||||
Loading…
Add table
Add a link
Reference in a new issue