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,8 +456,10 @@ 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;
}
}
}
}