summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorLemonBoy <LemonBoy@users.noreply.github.com>2018-08-21 14:51:23 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-08-21 14:51:23 +0200
commitbbe5e8326b9f307e857b28d4b27fe9b1ec6a08c0 (patch)
tree0f963a6495f826dbb1016c9d6cc6bf870e35bc33 /compiler
parent0dd31a4f977f4220f6f510520db236863ba9bff7 (diff)
downloadNim-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.nim2
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:
a>
7aa1d931 ^

b79e61fd ^
7aa1d931 ^

a7190ed7 ^

9e63c4a0 ^
a7190ed7 ^

02f5df5b ^
632528a9 ^
f533c6c1 ^
355f2a68 ^
03b90cf5 ^

02f5df5b ^

2acf15de ^
02f5df5b ^
b3f42cd3 ^
f533c6c1 ^


4f82ece2 ^
0ddf97e0 ^
f533c6c1 ^



02f5df5b ^


f533c6c1 ^
18c97a43 ^
7dfea94c ^

9f6356a8 ^
f533c6c1 ^


dab37236 ^
02f5df5b ^
9e63c4a0 ^
e112ef5a ^
9e63c4a0 ^

f533c6c1 ^


9e63c4a0 ^
a7190ed7 ^

4f82ece2 ^
a7190ed7 ^
4a2ff760 ^
a7190ed7 ^
03b90cf5 ^
a7190ed7 ^
a7190ed7 ^
134e5d17 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96