Add test for resolved bug

Closes #2389
This commit is contained in:
Ayaz Hafiz 2022-05-10 09:29:28 -04:00
parent 30671b5725
commit 32814cbb37
No known key found for this signature in database
GPG Key ID: 0E2A37416A25EF58

View File

@ -3474,3 +3474,22 @@ fn list_map2_conslist() {
RocStr
)
}
#[test]
#[cfg(any(feature = "gen-llvm"))]
fn polymorphic_lambda_captures_polymorphic_value() {
assert_evals_to!(
indoc!(
r#"
x = 2
f1 = \_ -> x
f = if True then f1 else f1
f {}
"#
),
2,
u64
)
}