We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47dbcd4 commit 1faa7e5Copy full SHA for 1faa7e5
src/Lean/Meta/Match/Match.lean
@@ -328,9 +328,9 @@ where
328
trace[Meta.Match.match] "missing alternative"
329
p.mvarId.admit
330
modify fun s => { s with counterExamples := p.examples :: s.counterExamples }
331
- | alt :: alts =>
+ | alt :: _ =>
332
unless (← solveCnstrs p.mvarId alt) do
333
- go alts
+ throwErrorAt alt.ref "Dependent match elimination failed: Could not solve constraints"
334
335
private def processAsPattern (p : Problem) : MetaM Problem := withGoalOf p do
336
let x :: _ := p.vars | unreachable!
0 commit comments