Address syntax error

This commit is contained in:
Ayaz Hafiz 2022-10-23 20:49:06 -05:00
parent 8ff74465b9
commit 14e0cd1b84
No known key found for this signature in database
GPG Key ID: 0E2A37416A25EF58

View File

@ -11459,16 +11459,15 @@ All branches in an `if` must have the same type!
);
test_report!(
<<<<<<< HEAD
demanded_vs_optional_record_field,
indoc!(
r#"
demanded_vs_optional_record_field,
indoc!(
r#"
foo : { a : Str } -> Str
foo = \{ a ? "" } -> a
foo
"#
),
@r###"
),
@r###"
TYPE MISMATCH /code/proj/Main.roc
The 1st argument to `foo` is weird:
@ -11484,7 +11483,7 @@ All branches in an `if` must have the same type!
{ a : Str }
"###
);
);
test_report!(
underivable_opaque_doesnt_error_for_derived_bodies,