fix: bug at toLCNF.visitMData

This commit is contained in:
Leonardo de Moura 2022-10-16 07:38:40 -07:00
parent 8a81dfb876
commit bebce084fa

View file

@ -714,7 +714,7 @@ where
return .fvar funDecl.fvarId
visitMData (mdata : MData) (e : Expr) : M Expr := do
if let some (.app (.lam n t b ..) v) := letFunAnnotation? e then
if let some (.app (.lam n t b ..) v) := letFunAnnotation? (.mdata mdata e) then
visitLet (.letE n t v b (nonDep := true)) #[]
else if isCompilerRelevantMData mdata then
mkAuxLetDecl <| .mdata mdata (← visit e)