fix(kernel/type_checker): missing check
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
b3de4bb061
commit
29981322b9
1 changed files with 2 additions and 1 deletions
|
@ -459,7 +459,8 @@ certified_declaration check(environment const & env, declaration const & d, name
|
||||||
check_name(env, d.get_name());
|
check_name(env, d.get_name());
|
||||||
check_duplicated_params(env, d);
|
check_duplicated_params(env, d);
|
||||||
type_checker checker1(env, g, mk_default_converter(env, optional<module_idx>(), memoize, extra_opaque));
|
type_checker checker1(env, g, mk_default_converter(env, optional<module_idx>(), memoize, extra_opaque));
|
||||||
checker1.check(d.get_type(), d.get_univ_params());
|
expr sort = checker1.check(d.get_type(), d.get_univ_params());
|
||||||
|
checker1.ensure_sort(sort, d.get_type());
|
||||||
if (d.is_definition()) {
|
if (d.is_definition()) {
|
||||||
optional<module_idx> midx;
|
optional<module_idx> midx;
|
||||||
if (d.is_opaque())
|
if (d.is_opaque())
|
||||||
|
|
Loading…
Reference in a new issue