Unify lambda sets with left/right closure capture differences

This commit is contained in:
Ayaz Hafiz 2022-06-28 16:45:46 -04:00 committed by ayazhafiz
parent 5f8b509cb3
commit 88618c098d
No known key found for this signature in database
GPG key ID: B443F7A3030C9AED
2 changed files with 159 additions and 67 deletions

View file

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