fix: fixes #1200
This commit is contained in:
parent
fa64c072ab
commit
d0499ebf4d
2 changed files with 7 additions and 1 deletions
|
|
@ -215,7 +215,7 @@ def applyMatchSplitter (mvarId : MVarId) (matcherDeclName : Name) (us : Array Le
|
|||
trace[Meta.Tactic.split] "after introN\n{mvarId}"
|
||||
let discrsNew := discrFVarIdsNew.map mkFVar
|
||||
let mvarType ← getMVarType mvarId
|
||||
let elimUniv ← getLevel mvarType
|
||||
let elimUniv ← withMVarContext mvarId <| getLevel mvarType
|
||||
let us ←
|
||||
if let some uElimPos := info.uElimPos? then
|
||||
pure <| us.set! uElimPos elimUniv
|
||||
|
|
|
|||
6
tests/lean/run/1200.lean
Normal file
6
tests/lean/run/1200.lean
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
example
|
||||
(h: match .none (α:=α) with
|
||||
| some _ => True
|
||||
| _ => True):
|
||||
True := by
|
||||
split at h <;> trivial
|
||||
Loading…
Add table
Reference in a new issue