fix(kernel/expr_eq): the cached type should ignored when comparing expressions

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-11-21 16:43:19 -08:00
parent 5346b67651
commit 28a56e3acf

View file

@ -46,7 +46,7 @@ class expr_eq_fn {
}
switch (a.kind()) {
case expr_kind::Var: lean_unreachable(); // LCOV_EXCL_LINE
case expr_kind::Constant: return const_name(a) == const_name(b) && apply(const_type(a), const_type(b));
case expr_kind::Constant: return const_name(a) == const_name(b);
case expr_kind::App:
if (num_args(a) != num_args(b))
return false;