mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Merge branch 'trunk' into dict-more
This commit is contained in:
commit
fe98229aa3
19 changed files with 691 additions and 193 deletions
|
@ -1952,7 +1952,7 @@ mod gen_primitives {
|
|||
main =
|
||||
x : Tree F64
|
||||
x = singleton 3
|
||||
when x is
|
||||
when x is
|
||||
Tree 3.0 _ -> True
|
||||
_ -> False
|
||||
"#
|
||||
|
@ -2215,4 +2215,23 @@ mod gen_primitives {
|
|||
i64
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn build_then_apply_closure() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [ main ] to "./platform"
|
||||
|
||||
main : Str
|
||||
main =
|
||||
x = "long string that is malloced"
|
||||
|
||||
(\_ -> x) {}
|
||||
"#
|
||||
),
|
||||
"long string that is malloced",
|
||||
&'static str
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue