Always use "MODULE PARAMS" term in errors

The theory is that this will be more searchable
This commit is contained in:
Agus Zubiaga 2024-07-06 22:07:29 -03:00
parent 0cbb352a89
commit 26fe91b02f
No known key found for this signature in database
5 changed files with 23 additions and 44 deletions

View file

@ -5005,27 +5005,6 @@ mod test_reporting {
"###
);
test_report!(
unexpected_module_params,
indoc!(
r#"
import Dict { key: "abc" } exposing [empty]
empty {}
"#
),@r###"
UNEXPECTED PARAMS in /code/proj/Main.roc
This import specifies module params:
4 import Dict { key: "abc" } exposing [empty]
^^^^^^^^^^^^^^
However, Dict does not expect any. Did you intend to import a
different module?
"###
);
test_report!(
unfinished_import_as_or_exposing,
indoc!(