fix: accidental variable shadowing

This commit is contained in:
Leonardo de Moura 2019-12-03 14:38:59 -08:00
parent bae4a5fc7c
commit 1aa398415c

View file

@ -29,7 +29,7 @@ if a.isLambda && !b.isLambda then do
bType ← inferType b;
bType ← whnfUsingDefault bType;
match bType with
| Expr.forallE n d b c =>
| Expr.forallE n d _ c =>
let b' := Lean.mkLambda n c.binderInfo d (mkApp b (mkBVar 0));
try $ isExprDefEqAux a b'
| _ => pure false