Don't skip closure captures when fixing them

This commit is contained in:
JRI98 2024-02-03 23:19:08 +00:00
parent 8e3c1597c3
commit be30e470a8
No known key found for this signature in database
GPG key ID: F83B29916FF13F24
3 changed files with 67 additions and 5 deletions

View file

@ -3474,3 +3474,29 @@ fn issue_5513() {
"
)
}
#[mono_test]
fn issue_6174() {
indoc!(
r"
g = Bool.false
a = \_ ->
if g then
Ok 0
else
Err NoNumber
b = \_ ->
if g then
Ok 0
else
Err NoNumber
c = \_ ->
[a {}, b {}]
c {}
"
)
}