fix: pp.analyze confirm def-eq before omitting arg

This commit is contained in:
Daniel Selsam 2021-07-30 11:36:55 -07:00 committed by Sebastian Ullrich
parent 3bef119136
commit 126db5fb12

View file

@ -407,7 +407,8 @@ where
match bInfos[i] with
| BinderInfo.default =>
if !(← valUnknown mvars[i]) && !(← read).inBottomUp && !(← isFunLike arg) then
annotateBool `pp.analysis.hole
if ← checkpointDefEq mvars[i] arg then
annotateBool `pp.analysis.hole
| BinderInfo.implicit =>
if (← valUnknown mvars[i] <||> higherOrders[i]) && !forceRegularApp then