fix: should only cache inferred type when there are no metavars
This commit is contained in:
parent
2694e7798a
commit
484a3a4e7c
1 changed files with 2 additions and 1 deletions
|
|
@ -174,7 +174,8 @@ private def inferFVarType (fvarId : FVarId) : MetaM Expr := do
|
|||
| some type => pure type
|
||||
| none =>
|
||||
let type ← inferType
|
||||
modifyInferTypeCache fun c => c.insert e type
|
||||
unless e.hasMVar || type.hasMVar do
|
||||
modifyInferTypeCache fun c => c.insert e type
|
||||
pure type
|
||||
|
||||
def inferTypeImp (e : Expr) : MetaM Expr :=
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue