mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-07 04:14:19 +00:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user