fix(kernel/converter): missing constraints

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-07-31 09:34:19 -07:00
parent 14a406d4d7
commit 8e222e6244

View file

@ -456,11 +456,13 @@ struct default_converter : public converter {
// If the flag use_conv_opt() is not true, then we skip this optimization
if (!is_opaque(*d_t) && d_t->use_conv_opt()) {
type_checker::scope scope(c);
if (is_def_eq_args(t_n, s_n, c, jst))
if (is_def_eq_args(t_n, s_n, c, jst)) {
scope.keep();
return true;
}
}
}
}
t_n = whnf_core(unfold_names(t_n, d_t->get_weight() - 1), c);
s_n = whnf_core(unfold_names(s_n, d_s->get_weight() - 1), c);
}