Report import lowercase alias

This commit is contained in:
Agus Zubiaga 2024-05-06 23:16:18 -03:00
parent 97ed8fdbbd
commit f81985533c
No known key found for this signature in database
4 changed files with 51 additions and 6 deletions

View file

@ -4987,6 +4987,25 @@ mod test_reporting {
"###
);
test_report!(
lowercase_import_alias,
indoc!(
r"
import svg.Path as path
"
),
@r###"
LOWERCASE ALIAS in tmp/lowercase_import_alias/Test.roc
This import is using a lowercase alias:
4 import svg.Path as path
^^^^
Module names and aliases must start with an uppercase letter.
"###
);
test_report!(
ingested_file_import_ann_syntax_err,
indoc!(