First pass at supporting multimorphic lambdas in lambda sets

This commit is contained in:
Ayaz Hafiz 2022-06-28 12:13:53 -04:00 committed by ayazhafiz
parent 1c40ad6127
commit 51978e08ed
No known key found for this signature in database
GPG key ID: B443F7A3030C9AED
14 changed files with 1061 additions and 355 deletions

View file

@ -1525,3 +1525,28 @@ fn tail_call_with_different_layout() {
"#
)
}
#[mono_test]
#[ignore]
fn lambda_sets_collide_with_captured_var() {
indoc!(
r#"
capture : a -> ({} -> Str)
capture = \val ->
thunk =
\{} ->
when val is
_ -> ""
thunk
x : [True, False]
fun =
when x is
True -> capture 1u8
False -> capture 1u64
fun {}
"#
)
}