test: pattern confusion example
cc @dselsam
This commit is contained in:
parent
57f6881c6c
commit
f04f51a295
1 changed files with 13 additions and 0 deletions
13
tests/elabissues/patternIssue.lean
Normal file
13
tests/elabissues/patternIssue.lean
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
inductive Moo : Type
|
||||
| M1 : Moo
|
||||
| M2 : Moo
|
||||
|
||||
inductive Foo : Type
|
||||
| mk₁ : Moo → Foo
|
||||
| mk₂ : Foo
|
||||
|
||||
def bar : Foo → String
|
||||
| Foo.mk₁ M1 => "mk₁ M1"
|
||||
| _ => "else"
|
||||
|
||||
#eval bar (Foo.mk₁ Moo.M2) -- "mk₁ M1"
|
||||
Loading…
Add table
Reference in a new issue