File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 185
185
- The compiler will not generate needless code for unused pattern variables.
186
186
([ Giacomo Cavalieri] ( https://github.com/giacomocavalieri ) )
187
187
188
+ - The compiler will now emit a warning when a function definition shadows
189
+ an imported function with the same name.
190
+
191
+ ``` gleam
192
+ import module.{fun}
193
+
194
+ fn fun() {}
195
+ ```
196
+
197
+ Will produce the following warning:
198
+
199
+ ```
200
+ warning: Definition of "fun" shadows an imported value
201
+ ┌─ /src/main.gleam:3:4
202
+ │
203
+ 3 │ fn fun() {}
204
+ │ ^^^
205
+
206
+ The imported value could not be used anyway.
207
+ Hint: You could remove the imported value.
208
+ ```
209
+
210
+ ([ Ariel Parker] ( https://github.com/arielherself ) )
211
+
188
212
### Build tool
189
213
190
214
- The build tool now supports placing modules in a directory called ` dev ` ,
You can’t perform that action at this time.
0 commit comments