summary refs log tree commit diff stats
path: root/lib/std/private/globs.nim
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2024-10-03 20:35:53 +0300
committerGitHub <noreply@github.com>2024-10-03 19:35:53 +0200
commitd98ef312f0cf8745d39c940b16d8d2dce1dfa70f (patch)
treed4e69247521cab04e5a4e07931f02c25dbf232f9 /lib/std/private/globs.nim
parent89978b48baeed0c745d45d666a9786c8d9457581 (diff)
downloadNim-d98ef312f0cf8745d39c940b16d8d2dce1dfa70f.tar.gz
don't construct array type for already typed `nkBracket` node (#24224)
fixes #23010, split from #24195

When resemming bracket nodes, the compiler currently unconditionally
makes a new node with an array type based on the node. However the VM
can generate bracket nodes with `seq` types, which this erases. To fix
this, if a bracket node already has a type, we still resem the bracket
node, but don't construct a new type for it, instead using the type of
the original node.

A version of this was rejected that didn't resem the node at all if it
was typed, but I can't find it. The difference with this one is that the
individual elements are still resemmed.

This should fix the break caused by #24184 so we could redo it after
this PR but it might still have issues, not to mention the related
pre-existing issues like #22793, #12559 etc.
Diffstat (limited to 'lib/std/private/globs.nim')
0 files changed, 0 insertions, 0 deletions
C++ support' href='/ahoang/Nim/commit/compiler/wordrecg.nim?h=devel&id=910ef7b2d109f7516f8dab054bd0d41ff733047a'>910ef7b2d ^
cae5e33a4 ^
f6ff01572 ^
910ef7b2d ^
560a3bad2 ^
cae5e33a4 ^
057b53e13 ^
910ef7b2d ^

c9966a3e1 ^
3ccc9c467 ^
910ef7b2d ^
375c95d3a ^
560a3bad2 ^
02a2180a6 ^
94d1aa510 ^
337e1ecc7 ^

910ef7b2d ^

28d9398de ^
3091bc495 ^
a2c040e3b ^
f25c638dc ^
910ef7b2d ^
7b5448c75 ^
910ef7b2d ^




3b7ef2288 ^
9de05ec3e ^
1d14cb1ad ^
48a62af3b ^
72dfe176f ^

804e2ac89 ^
2de98d9e0 ^
485c37194 ^
910ef7b2d ^


4b7de4dc5 ^
910ef7b2d ^
ab72377ce ^
7916b1f9a ^
bd19b5f4d ^
f25c638dc ^







1e45bb79a ^
f25c638dc ^


38710b614 ^



0ead36dae ^
910ef7b2d ^
e25474154 ^

910ef7b2d ^
e25474154 ^
a6daf7152 ^
910ef7b2d ^
f25c638dc ^

910ef7b2d ^
38710b614 ^

910ef7b2d ^
f25c638dc ^

c0a3d4406 ^
f25c638dc ^
910ef7b2d ^

cae5e33a4 ^
910ef7b2d ^
f6ff01572 ^
e27ab3673 ^
910ef7b2d ^
cae5e33a4 ^
3ef146b0e ^
057b53e13 ^
c0a3d4406 ^
910ef7b2d ^
d0de1fc33 ^
c9966a3e1 ^
910ef7b2d ^
3ccc9c467 ^
b50133b50 ^

375c95d3a ^
560a3bad2 ^
02a2180a6 ^
337e1ecc7 ^

910ef7b2d ^

28d9398de ^
a2c040e3b ^

23ef565a3 ^
910ef7b2d ^
7b5448c75 ^
dc047931b ^
910ef7b2d ^


f25c638dc ^
910ef7b2d ^
3b7ef2288 ^
9de05ec3e ^
3b7ef2288 ^
910ef7b2d ^
48a62af3b ^
72dfe176f ^

804e2ac89 ^
2de98d9e0 ^
485c37194 ^
8d19a93f1 ^
132b6b3ef ^
4b7de4dc5 ^
da190876d ^
5506e8491 ^
bd19b5f4d ^
910ef7b2d ^
f25c638dc ^







1e45bb79a ^
f25c638dc ^



38710b614 ^



0ead36dae ^
f25c638dc ^
e25474154 ^
910ef7b2d ^


e25474154 ^

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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183