mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
Suggest link to tutorial's operator desugaring table
This commit is contained in:
parent
609620da2e
commit
be4e3b5983
2 changed files with 11 additions and 6 deletions
|
@ -4299,8 +4299,9 @@ mod test_reporting {
|
|||
4│ f :: I64
|
||||
^^
|
||||
|
||||
I have no specific suggestion for this operator, see TODO for the full
|
||||
list of operators in Roc.
|
||||
I have no specific suggestion for this operator, see
|
||||
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
|
||||
^^
|
||||
|
||||
I have no specific suggestion for this operator, see TODO for the full
|
||||
list of operators in Roc.
|
||||
I have no specific suggestion for this operator, see
|
||||
https://www.roc-lang.org/tutorial#operator-desugaring-table for the
|
||||
full list of operators in Roc.
|
||||
"#
|
||||
);
|
||||
|
||||
|
|
|
@ -309,8 +309,11 @@ fn to_expr_report<'a>(
|
|||
alloc.reflow(" instead."),
|
||||
],
|
||||
_ => vec![
|
||||
alloc.reflow("I have no specific suggestion for this operator, "),
|
||||
alloc.reflow("see TODO for the full list of operators in Roc."),
|
||||
alloc.reflow("I have no specific suggestion for this operator, see "),
|
||||
alloc.parser_suggestion(
|
||||
"https://www.roc-lang.org/tutorial#operator-desugaring-table ",
|
||||
),
|
||||
alloc.reflow("for the full list of operators in Roc."),
|
||||
],
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue