mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Merge branch 'trunk' into i2147
This commit is contained in:
commit
b435f72be0
13 changed files with 579 additions and 125 deletions
|
@ -1204,3 +1204,27 @@ fn dict_get_single() {
|
|||
r#"Ok { a: 1, c: 2 } : Result { a : Num *, c : Num * } [KeyNotFound]*"#,
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn record_of_poly_function() {
|
||||
expect_success(
|
||||
indoc!(
|
||||
r#"
|
||||
{ a: \_ -> "a" }
|
||||
"#
|
||||
),
|
||||
r#"{ a: <function> } : { a : * -> Str }"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn record_of_poly_function_and_string() {
|
||||
expect_success(
|
||||
indoc!(
|
||||
r#"
|
||||
{ a: \_ -> "a", b: "b" }
|
||||
"#
|
||||
),
|
||||
r#"{ a: <function>, b: "b" } : { a : * -> Str, b : Str }"#,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue