fix: fixes #1168
This commit is contained in:
parent
fb45eb4964
commit
9818de078b
2 changed files with 4 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ private partial def generalizeMatchDiscrs (mvarId : MVarId) (matcherDeclName : N
|
|||
mkLambdaFVars (ys++altEqsNew) body
|
||||
altsNew := altsNew.push altNew
|
||||
return .done { matcherApp with alts := altsNew }.toExpr
|
||||
transform e pre
|
||||
transform (← instantiateMVars e) pre
|
||||
let targetNew ← mkNewTarget (← getMVarType mvarId)
|
||||
unless (← foundRef.get) do
|
||||
throwError "'applyMatchSplitter' failed, did not find discriminants"
|
||||
|
|
|
|||
3
tests/lean/run/1168.lean
Normal file
3
tests/lean/run/1168.lean
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
theorem ex : True ∧ (match True with | _ => True) := by
|
||||
constructor; exact trivial
|
||||
split; trivial
|
||||
Loading…
Add table
Reference in a new issue