mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Handle record update found in module params
This commit is contained in:
parent
f3b71c46e7
commit
2e4306279c
2 changed files with 36 additions and 1 deletions
|
@ -4985,6 +4985,25 @@ mod test_reporting {
|
|||
"###
|
||||
);
|
||||
|
||||
test_report!(
|
||||
record_update_in_module_params,
|
||||
indoc!(
|
||||
r"
|
||||
import Menu { myParams & echo: echoFn }
|
||||
"
|
||||
),@r###"
|
||||
── RECORD UPDATE IN MODULE PARAMS in ...ecord_update_in_module_params/Test.roc ─
|
||||
|
||||
I was partway through parsing module params, but I got stuck here:
|
||||
|
||||
4│ import Menu { myParams & echo: echoFn }
|
||||
^^^^^^^^
|
||||
|
||||
It looks like you're trying to update a record, but module params
|
||||
require a standalone record literal.
|
||||
"###
|
||||
);
|
||||
|
||||
test_report!(
|
||||
unfinished_import_as_or_exposing,
|
||||
indoc!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue