mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
parent
1f45d13c67
commit
4114e1f14d
1 changed files with 24 additions and 0 deletions
|
@ -1192,3 +1192,27 @@ fn opaque_wrap_function() {
|
||||||
"[@A 1, @A 2, @A 3] : List (A U8)",
|
"[@A 1, @A 2, @A 3] : List (A U8)",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[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