fix: bug introduced today

This commit is contained in:
Leonardo de Moura 2020-08-26 14:49:20 -07:00
parent 5d036d0ca3
commit 89bd5d6da2

View file

@ -465,7 +465,8 @@ else if letDecl.getKind == `Lean.Parser.Term.letPatDecl then do
let stxNew := if useLetExpr then stxNew else stxNew.updateKind `Lean.Parser.Term.«let!»;
withMacroExpansion stx stxNew $ elabTerm stxNew expectedType?
else if letDecl.getKind == `Lean.Parser.Term.letEqnsDecl then do
declNew ← liftMacroM $ expandLetEqnsDecl letDecl;
letDeclIdNew ← liftMacroM $ expandLetEqnsDecl letDecl;
let declNew := (stx.getArg 1).setArg 0 letDeclIdNew;
let stxNew := stx.setArg 1 declNew;
withMacroExpansion stx stxNew $ elabTerm stxNew expectedType?
else