Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
odanoburu committed Dec 4, 2023
1 parent 1246e7f commit 6181dc3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/lean/invalidMutualError.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/-! Test invalid mutual block error message -/

inductive Foo : Type where
| foo0 : Nat → Foo
| foo1 : Foo → Foo
| foo2 : Foo → Foo → Foo

mutual

inductive Bar1 : Foo → Prop where
| mk {f : Foo} : Bar f → Bar1 (.foo1 f)

def Bar : Foo → Prop
| .foo1 f => Bar1 f
| _ => True

end
1 change: 1 addition & 0 deletions tests/lean/invalidMutualError.lean.expected.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
invalidMutualError.lean:8:0: error: invalid mutual block: either all elements of the block must be inductive declarations, or they must all be definitions/theorems/abbrevs

0 comments on commit 6181dc3

Please sign in to comment.