mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
assign guarded patterns at the last moment
This commit is contained in:
parent
78309f2607
commit
e32a06b088
3 changed files with 24 additions and 21 deletions
|
@ -510,8 +510,8 @@ fn if_guard_multiple() {
|
|||
f = \n ->
|
||||
when Identity n 0 is
|
||||
Identity x _ if x == 0 -> x + 0
|
||||
# Identity x _ if x == 1 -> x + 0
|
||||
# Identity x _ if x == 2 -> x + 0
|
||||
Identity x _ if x == 1 -> x + 0
|
||||
Identity x _ if x == 2 -> x + 0
|
||||
Identity x _ -> x - x
|
||||
|
||||
{ a: f 0, b: f 1, c: f 2, d: f 4 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue