File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
### Compiler
6
6
7
+ - The compiler now suggest public values from imported modules when the variable
8
+ in unknown. These values are suggested based on name and arity.
9
+
10
+ Considering this program:
11
+ ``` gleam
12
+ import gleam/io
13
+
14
+ pub fn main() -> Nil {
15
+ println("Hello, World!")
16
+ }
17
+ ```
18
+
19
+ The compiler will display this error message:
20
+ ``` text
21
+ error: Unknown variable
22
+ ┌─ /path/to/project/src/project.gleam:4:3
23
+ │
24
+ 4 │ println("Hello, World!")
25
+ │ ^^^^^^^
26
+
27
+ The name `println` is not in scope here.
28
+ Consider using one of these variables:
29
+
30
+ io.println
31
+ ```
32
+
33
+ ([ raphrous] ( https://github.com/realraphrous ) )
34
+
7
35
- The compiler now performs function inlining optimisations for a specific set
8
36
of standard library functions, which can allow functions which were previously
9
37
not tail-recursive on the JavaScript target to become tail-recursive. For
You can’t perform that action at this time.
0 commit comments