lean4-htt/tests/lean/run/elseCaseArrow.lean
Leonardo de Moura 2909313475 fix: doLetArrow and doReassignArrow
@Kha the new tests did not work without this fix.
The `| _ =>` was being parsed as part of the `doLetArrow` and `doReassignArrow`
2020-11-26 10:29:08 -08:00

11 lines
241 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 ()