Handle record update found in module params

This commit is contained in:
Agus Zubiaga 2024-05-09 08:01:46 -03:00
parent f3b71c46e7
commit 2e4306279c
No known key found for this signature in database
2 changed files with 36 additions and 1 deletions

View file

@ -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!(