Suggest link to tutorial's operator desugaring table

This commit is contained in:
Nathan Kramer 2024-09-30 18:14:35 +10:00
parent 609620da2e
commit be4e3b5983
No known key found for this signature in database
GPG key ID: F067E9F18E762681
2 changed files with 11 additions and 6 deletions

View file

@ -4299,8 +4299,9 @@ mod test_reporting {
4 f :: I64 4 f :: I64
^^ ^^
I have no specific suggestion for this operator, see TODO for the full I have no specific suggestion for this operator, see
list of operators in Roc. https://www.roc-lang.org/tutorial#operator-desugaring-table for the
full list of operators in Roc.
"# "#
); );
@ -6052,8 +6053,9 @@ All branches in an `if` must have the same type!
5 5 ** 3 5 5 ** 3
^^ ^^
I have no specific suggestion for this operator, see TODO for the full I have no specific suggestion for this operator, see
list of operators in Roc. https://www.roc-lang.org/tutorial#operator-desugaring-table for the
full list of operators in Roc.
"# "#
); );

View file

@ -309,8 +309,11 @@ fn to_expr_report<'a>(
alloc.reflow(" instead."), alloc.reflow(" instead."),
], ],
_ => vec![ _ => vec![
alloc.reflow("I have no specific suggestion for this operator, "), alloc.reflow("I have no specific suggestion for this operator, see "),
alloc.reflow("see TODO for the full list of operators in Roc."), alloc.parser_suggestion(
"https://www.roc-lang.org/tutorial#operator-desugaring-table ",
),
alloc.reflow("for the full list of operators in Roc."),
], ],
}; };