-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reset changelog for v1.7 * fix update use_manifest logic * Changelog! * v1.6.1 * Reintroduce exhaustiveness checking for `use` (#3880) * fix: do not use code:del_paths since that function is not available on older versions of Erlang. * switch to conditional compilations instead of a runtime check * Clippy * Clippy, again! * Clippy, again!! * update compiler version * update test name --------- Co-authored-by: Louis Pilfold <[email protected]> Co-authored-by: Jason Sipula <[email protected]> Co-authored-by: Gears <[email protected]> Co-authored-by: yoshi~ <[email protected]>
- Loading branch information
1 parent
24b84c7
commit 2a140e7
Showing
11 changed files
with
546 additions
and
463 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
29 changes: 29 additions & 0 deletions
29
..._/tests/snapshots/glistix_core__type___tests__errors__inexhaustive_use_reports_error.snap
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,29 @@ | ||
--- | ||
source: compiler-core/src/type_/tests/errors.rs | ||
expression: "\nuse [1, 2, 3] <- todo\ntodo\n" | ||
--- | ||
----- SOURCE CODE | ||
|
||
use [1, 2, 3] <- todo | ||
todo | ||
|
||
|
||
----- ERROR | ||
error: Inexhaustive pattern | ||
┌─ /src/one/two.gleam:2:5 | ||
│ | ||
2 │ use [1, 2, 3] <- todo | ||
│ ^^^^^^^^^ | ||
|
||
This assignment uses a pattern that does not match all possible values. If | ||
one of the other values is used then the assignment will crash. | ||
|
||
The missing patterns are: | ||
|
||
[] | ||
[_, _, _, _, ..] | ||
[_, _, _] | ||
[_, _] | ||
[_] | ||
|
||
Hint: Use a more general pattern or use `let assert` instead. |
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