mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
Unify lambda sets with left/right closure capture differences
This commit is contained in:
parent
5f8b509cb3
commit
88618c098d
2 changed files with 159 additions and 67 deletions
|
@ -6974,12 +6974,18 @@ mod solve_expr {
|
|||
fun =
|
||||
when x is
|
||||
True -> capture ""
|
||||
# ^^^^^^^
|
||||
False -> capture {}
|
||||
# ^^^^^^^
|
||||
fun
|
||||
#^^^{-1}
|
||||
"#
|
||||
),
|
||||
&["fun : {} -[[thunk(5) {}, thunk(5) Str]]-> Str"],
|
||||
&[
|
||||
"capture : Str -[[capture(1)]]-> ({} -[[thunk(5) {}, thunk(5) Str]]-> Str)",
|
||||
"capture : {} -[[capture(1)]]-> ({} -[[thunk(5) {}, thunk(5) Str]]-> Str)",
|
||||
"fun : {} -[[thunk(5) {}, thunk(5) Str]]-> Str",
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue