fix(kernel/type_checker): missing check

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-07-05 21:50:32 -07:00
parent b3de4bb061
commit 29981322b9

View file

@ -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())