mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Report unfinished exposing in imports
This commit is contained in:
parent
f81985533c
commit
dc18597a0e
2 changed files with 35 additions and 4 deletions
|
@ -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!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue