mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Update reporting test
This commit is contained in:
parent
3708ed7c90
commit
f7dea48418
1 changed files with 14 additions and 2 deletions
|
@ -9060,7 +9060,9 @@ All branches in an `if` must have the same type!
|
||||||
main = Encode.toEncoder { x: @A {} }
|
main = Encode.toEncoder { x: @A {} }
|
||||||
"#
|
"#
|
||||||
),
|
),
|
||||||
@r#"
|
// TODO: this error message is quite unfortunate. We should remove the duplication, and
|
||||||
|
// also support regions that point to things in other modules. See also https://github.com/rtfeldman/roc/issues/3056.
|
||||||
|
@r###"
|
||||||
── TYPE MISMATCH ───────────────────────────────────────── /code/proj/Main.roc ─
|
── TYPE MISMATCH ───────────────────────────────────────── /code/proj/Main.roc ─
|
||||||
|
|
||||||
This expression has a type that does not implement the abilities it's expected to:
|
This expression has a type that does not implement the abilities it's expected to:
|
||||||
|
@ -9081,7 +9083,17 @@ All branches in an `if` must have the same type!
|
||||||
|
|
||||||
Tip: `A` does not implement `Encoding`. Consider adding a custom
|
Tip: `A` does not implement `Encoding`. Consider adding a custom
|
||||||
implementation or `has Encode.Encoding` to the definition of `A`.
|
implementation or `has Encode.Encoding` to the definition of `A`.
|
||||||
"#
|
|
||||||
|
── INCOMPLETE ABILITY IMPLEMENTATION ───────────────────── /code/proj/Main.roc ─
|
||||||
|
|
||||||
|
The type `A` does not fully implement the ability `Encoding`. The
|
||||||
|
following specializations are missing:
|
||||||
|
|
||||||
|
A specialization for `toEncoder`, which is defined here:
|
||||||
|
|
||||||
|
5│
|
||||||
|
^^^^^^^^^
|
||||||
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
test_report!(
|
test_report!(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue