-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better error message for modules with lowercase identifiers (#2062)
* Better error message for modules with lowercase identifiers fixes #1974 * rebase + wip error message
- Loading branch information
1 parent
6cfddf9
commit 7d44d1c
Showing
6 changed files
with
1,228 additions
and
1,392 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
File "lowercase_module.re", line 1, characters 7-16: | ||
Error: Module names must start with an uppercase letter. |
2 changes: 2 additions & 0 deletions
2
formatTest/errorTests/expected_output/lowercase_module_rec.re
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 @@ | ||
File "lowercase_module_rec.re", line 1, characters 11-20: | ||
Error: Module names must start with an uppercase letter. |
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 @@ | ||
module lowercase = {}; |
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 @@ | ||
module rec lowercase = {}; |
Oops, something went wrong.