Update test

This commit is contained in:
Ayaz Hafiz 2022-07-29 17:19:47 -04:00
parent 985c43b15b
commit 2aa69cb3f1
No known key found for this signature in database
GPG Key ID: 0E2A37416A25EF58

View File

@ -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.
"###
);
}