Merge pull request #2926 from rtfeldman/matrix-correct-mutual-type-alias

Matrix correct mutual type alias
This commit is contained in:
Ayaz 2022-04-25 11:19:59 -04:00 committed by GitHub
commit 53c8dee4ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 427 additions and 477 deletions

View file

@ -5437,6 +5437,24 @@ mod solve_expr {
)
}
#[test]
fn issue_2458_swapped_order() {
infer_eq_without_problem(
indoc!(
r#"
Bar a : Foo a
Foo a : [ Blah (Result (Bar a) { val: a }) ]
v : Bar U8
v = Blah (Ok (Blah (Err { val: 1 })))
v
"#
),
"Bar U8",
)
}
// https://github.com/rtfeldman/roc/issues/2379
#[test]
fn copy_vars_referencing_copied_vars() {