mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
fix closure weirdness (skipping or infinite looping)
This commit is contained in:
parent
350891468a
commit
52d36cbe72
7 changed files with 75 additions and 52 deletions
|
@ -2616,7 +2616,8 @@ fn lambda_set_struct_byte() {
|
|||
r = Red
|
||||
|
||||
p1 = (\u -> r == u)
|
||||
oneOfResult = List.map [p1, p1] (\p -> p Green)
|
||||
foobarbaz = (\p -> p Green)
|
||||
oneOfResult = List.map [p1, p1] foobarbaz
|
||||
|
||||
when oneOfResult is
|
||||
_ -> 32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue