mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Module params record parse problem test
This commit is contained in:
parent
25d3cae08f
commit
9be3358355
1 changed files with 18 additions and 0 deletions
|
@ -4943,6 +4943,24 @@ mod test_reporting {
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
test_report!(
|
||||||
|
weird_import_params_record,
|
||||||
|
indoc!(
|
||||||
|
r"
|
||||||
|
import Menu { x = 4 }
|
||||||
|
"
|
||||||
|
),@r###"
|
||||||
|
── RECORD PARSE PROBLEM in tmp/weird_import_params_record/Test.roc ─────────────
|
||||||
|
|
||||||
|
I am partway through parsing a record, but I got stuck here:
|
||||||
|
|
||||||
|
4│ import Menu { x = 4 }
|
||||||
|
^
|
||||||
|
|
||||||
|
TODO provide more context.
|
||||||
|
"###
|
||||||
|
);
|
||||||
|
|
||||||
test_report!(
|
test_report!(
|
||||||
unfinished_import_as_or_exposing,
|
unfinished_import_as_or_exposing,
|
||||||
indoc!(
|
indoc!(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue