Skip to content

Commit 00a57c5

Browse files
committed
fix: only run processInaccessibleAsCtor if there is at least one constructor around
This PR fixes #10792.
1 parent 14ff08d commit 00a57c5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/lean/run/issue10792.lean

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
inductive Vec (α : Type) : Nat → Type where
2+
| nil : Vec α 0
3+
| cons (x : α) (xs : Vec α n) : Vec α (n.succ)
4+
5+
-- set_option trace.Meta.Match.match true
6+
7+
def test : Vec Unit 10000 → Nat
8+
| Vec.cons () _ => 1

0 commit comments

Comments
 (0)