Merge remote-tracking branch 'origin/trunk' into assoc-list-dict

This commit is contained in:
Folkert 2022-07-13 20:44:28 +02:00
commit 5763248b44
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
41 changed files with 949 additions and 131 deletions

View file

@ -7341,4 +7341,30 @@ mod solve_expr {
"Rose I64",
);
}
#[test]
fn opaque_wrap_function() {
infer_eq_without_problem(
indoc!(
r#"
A := U8
List.map [1, 2, 3] @A
"#
),
"List A",
);
}
#[test]
fn opaque_wrap_function_with_inferred_arg() {
infer_eq_without_problem(
indoc!(
r#"
A a := a
List.map [1u8, 2u8, 3u8] @A
"#
),
"List (A U8)",
);
}
}