fix(kernel/converter): missing constraints
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
14a406d4d7
commit
8e222e6244
1 changed files with 3 additions and 1 deletions
|
@ -456,8 +456,10 @@ struct default_converter : public converter {
|
||||||
// If the flag use_conv_opt() is not true, then we skip this optimization
|
// If the flag use_conv_opt() is not true, then we skip this optimization
|
||||||
if (!is_opaque(*d_t) && d_t->use_conv_opt()) {
|
if (!is_opaque(*d_t) && d_t->use_conv_opt()) {
|
||||||
type_checker::scope scope(c);
|
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;
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue