mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 21:40:58 +00:00
Always use "MODULE PARAMS" term in errors
The theory is that this will be more searchable
This commit is contained in:
parent
0cbb352a89
commit
26fe91b02f
5 changed files with 23 additions and 44 deletions
|
|
@ -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!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue