Merge branch 'assoc-list-dict' of https://github.com/rtfeldman/roc into assoc-list-dict

This commit is contained in:
Ayaz Hafiz 2022-07-13 16:18:52 -04:00
commit 2a963ca3ba
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
42 changed files with 961 additions and 143 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)",
);
}
}