Merge branch 'trunk' into i2147

This commit is contained in:
Folkert de Vries 2022-08-11 10:24:49 +02:00 committed by GitHub
commit b435f72be0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 579 additions and 125 deletions

View file

@ -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 }"#,
);
}