mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Don't skip closure captures when fixing them
This commit is contained in:
parent
8e3c1597c3
commit
be30e470a8
3 changed files with 67 additions and 5 deletions
|
@ -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 {}
|
||||
"
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue