Skip to content

Commit

Permalink
Better error message for modules with lowercase identifiers (#2062)
Browse files Browse the repository at this point in the history
* Better error message for modules with lowercase identifiers

fixes #1974

* rebase + wip error message
  • Loading branch information
anmonteiro authored and chenglou committed Jul 11, 2018
1 parent 6cfddf9 commit 7d44d1c
Show file tree
Hide file tree
Showing 6 changed files with 1,228 additions and 1,392 deletions.
2 changes: 2 additions & 0 deletions formatTest/errorTests/expected_output/lowercase_module.re
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 formatTest/errorTests/expected_output/lowercase_module_rec.re
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.
1 change: 1 addition & 0 deletions formatTest/errorTests/input/lowercase_module.re
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module lowercase = {};
1 change: 1 addition & 0 deletions formatTest/errorTests/input/lowercase_module_rec.re
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module rec lowercase = {};
Loading

0 comments on commit 7d44d1c

Please sign in to comment.