Skip to content

Commit

Permalink
chore: add test for recursive structures (#6173)
Browse files Browse the repository at this point in the history
Closes #6140. This was fixed by #6125.
  • Loading branch information
kmill authored Nov 22, 2024
1 parent e066c17 commit d3cb812
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/lean/run/structure_recursive.lean
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,18 @@ structure A5 extends A4 Nat Bool where
x := 0
y := true

/-!
Default value whose type depends on the recursive structure.
Reported in https://github.com/leanprover/lean4/issues/6140
-/

structure RecS where
n : Nat
recS : Option RecS := none

/-- info: { n := 0, recS := none } : RecS -/
#guard_msgs in #check ({ n := 0 } : RecS)

/-!
Incidental new feature: checking projections when the structure is Prop.
-/
Expand Down

0 comments on commit d3cb812

Please sign in to comment.