-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(name resolution): improving unbound error messages by suggesting…
… names from the language too
- Loading branch information
Showing
10 changed files
with
44 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tests/unittests/resources/DiagnosticsSuite/compileTime/unbound_var.ark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(let a b) |
5 changes: 5 additions & 0 deletions
5
tests/unittests/resources/DiagnosticsSuite/compileTime/unbound_var.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
At b @ 1:9 | ||
1 | (let a b) | ||
| ^~~~~~~~~ | ||
2 | | ||
Unbound variable error "b" (variable is used but not defined) |
2 changes: 2 additions & 0 deletions
2
tests/unittests/resources/DiagnosticsSuite/compileTime/unbound_var_suggestion.ark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(let bar 12) | ||
(let a ber) |
6 changes: 6 additions & 0 deletions
6
tests/unittests/resources/DiagnosticsSuite/compileTime/unbound_var_suggestion.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
At ber @ 2:12 | ||
1 | (let bar 12) | ||
2 | (let a ber) | ||
| ^~~~~~~~~~~ | ||
3 | | ||
Unbound variable error "ber" (did you mean "bar"?) |