mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
better error message for type start
This commit is contained in:
parent
22f77ed966
commit
8d80dc97c8
4 changed files with 85 additions and 71 deletions
|
@ -1781,7 +1781,13 @@ fn to_type_report<'a>(
|
|||
let doc = alloc.stack(vec![
|
||||
alloc.reflow(r"I just started parsing a type, but I got stuck here:"),
|
||||
alloc.region_with_subregion(surroundings, region),
|
||||
alloc.note("I may be confused by indentation"),
|
||||
alloc.concat(vec![
|
||||
alloc.reflow(r"I am expecting a type next, like "),
|
||||
alloc.parser_suggestion("Bool"),
|
||||
alloc.reflow(r" or "),
|
||||
alloc.parser_suggestion("List a"),
|
||||
alloc.reflow("."),
|
||||
]),
|
||||
]);
|
||||
|
||||
Report {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue