Skip to content

Commit 1a2fa3c

Browse files
committed
Prettier test
1 parent 342bb8b commit 1a2fa3c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/lean/run/matchOverlapInaccesible.lean

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ inductive MyNat : Type where
3636
| zero : MyNat
3737
| succ : MyNat -> MyNat
3838

39-
def MyNat.add : MyNat -> MyNat -> MyNat := sorry
39+
def MyNat.add : MyNat -> MyNat -> MyNat
40+
| zero, n => n
41+
| succ m, n => succ (add m n)
42+
4043
instance : Add MyNat where
4144
add := MyNat.add
4245

@@ -53,7 +56,7 @@ def parity (n : MyNat) : Parity n := sorry
5356
/--
5457
error: Tactic `cases` failed with a nested error:
5558
Dependent elimination failed: Failed to solve equation
56-
zero = sorry n✝ n✝
59+
zero = n✝.add n✝
5760
at case `Parity.even` after processing
5861
zero, _
5962
the dependent pattern matcher can solve the following kinds of equations

0 commit comments

Comments
 (0)