@Kha the new tests did not work without this fix. The `| _ =>` was being parsed as part of the `doLetArrow` and `doReassignArrow`
11 lines
241 B
Text
11 lines
241 B
Text
def f1 (x : Nat) (p : Nat × Nat) : IO Unit := do
|
||
match x with
|
||
| 0 => let (y, _) ← pure p
|
||
| _ => pure ()
|
||
|
||
|
||
def f2 (x : Nat) (p : Nat × Nat) : IO Unit := do
|
||
let mut y := 0
|
||
match x with
|
||
| 0 => (y, _) ← pure p
|
||
| _ => pure ()
|