mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Report ingested file annotation syntax error
This commit is contained in:
parent
56f12718f1
commit
520dc389f3
2 changed files with 37 additions and 0 deletions
|
@ -4913,6 +4913,25 @@ mod test_reporting {
|
|||
Note: I may be confused by indentation
|
||||
"
|
||||
);
|
||||
|
||||
test_report!(
|
||||
ingested_file_import_ann_syntax_err,
|
||||
indoc!(
|
||||
r#"
|
||||
import "example.json" as example : List U8, U32
|
||||
"#
|
||||
),
|
||||
@r###"
|
||||
── UNFINISHED TYPE in tmp/ingested_file_import_ann_syntax_err/Test.roc ─────────
|
||||
|
||||
I am partway through parsing a type, but I got stuck here:
|
||||
|
||||
4│ import "example.json" as example : List U8, U32
|
||||
^
|
||||
|
||||
Note: I may be confused by indentation
|
||||
"###
|
||||
);
|
||||
|
||||
// TODO could do better by pointing out we're parsing a function type
|
||||
test_report!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue