Skip to content

Commit e292510

Browse files
committed
Update of the CHANGELOG.md file.
1 parent c55db9c commit e292510

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Compiler
6+
7+
- The compiler now suggest public variables and functions from imported modules
8+
when the variable in unknown. These variables and functions are suggested
9+
based on name and arity.
10+
11+
Considering this program:
12+
```gleam
13+
import gleam/io
14+
15+
pub fn main() -> Nil {
16+
println("Hello, World!")
17+
}
18+
```
19+
20+
The compiler will display this error message:
21+
```text
22+
error: Unknown variable
23+
┌─ /path/to/project/src/project.gleam:4:3
24+
25+
4 │ println("Hello, World!")
26+
│ ^^^^^^^
27+
28+
The name `println` is not in scope here.
29+
Consider using one of these variables:
30+
31+
io.println
32+
```
33+
34+
([raphrous](https://github.com/realraphrous))
35+
336
## v1.12.0-rc2 - 2025-07-24
437

538
### Formatter

0 commit comments

Comments
 (0)