mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-13 09:49:11 +03:00
Update test
This commit is contained in:
parent
985c43b15b
commit
2aa69cb3f1
@ -10128,6 +10128,24 @@ All branches in an `if` must have the same type!
|
||||
x
|
||||
"#
|
||||
),
|
||||
@r""
|
||||
@r###"
|
||||
── TYPE MISMATCH ───────────────────────────────────────── /code/proj/Main.roc ─
|
||||
|
||||
Something is off with the body of the `x` definition:
|
||||
|
||||
4│ x : { y : Str }
|
||||
5│ x = {}
|
||||
^^
|
||||
|
||||
The body is a record of type:
|
||||
|
||||
{}
|
||||
|
||||
But the type annotation on `x` says it should be:
|
||||
|
||||
{ y : Str }
|
||||
|
||||
Tip: Looks like the y field is missing.
|
||||
"###
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user