Report unfinished exposing in imports

This commit is contained in:
Agus Zubiaga 2024-05-06 23:24:56 -03:00
parent f81985533c
commit dc18597a0e
No known key found for this signature in database
2 changed files with 35 additions and 4 deletions

View file

@ -5006,6 +5006,24 @@ mod test_reporting {
"###
);
test_report!(
unfinished_import_exposing,
indoc!(
r"
import svg.Path exposing
"
),
@r###"
UNFINISHED IMPORT in tmp/unfinished_import_exposing/Test.roc
I was partway through parsing an `import`, but I got stuck here:
4 import svg.Path exposing
^
I just saw the `exposing` keyword, so I was expecting to see `[` next.
"###);
test_report!(
ingested_file_import_ann_syntax_err,
indoc!(