Handle recursive variables in building lambda set representations

This commit is contained in:
Ayaz Hafiz 2022-08-09 14:11:02 -07:00
parent e1fb21fc59
commit 549b00d327
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 66 additions and 11 deletions

View file

@ -1922,3 +1922,22 @@ fn issue_3669() {
"#
)
}
#[mono_test]
fn issue_3444() {
indoc!(
r#"
app "test" provides [main] to "./platform"
combine = \a, b -> (\x -> x |> a |> b )
const = \x -> (\_y -> x)
list = []
res : Str -> Str
res = List.walk list (const "z") (\c1, c2 -> combine c1 c2)
main = res "hello"
"#
)
}