fix(frontends/lean/nested_declaration): compilation error in debug mode

This commit is contained in:
Leonardo de Moura 2015-06-13 13:10:10 -07:00
parent 8a85e4ee87
commit 45684588cc

View file

@ -81,12 +81,12 @@ expr get_nested_declaration_arg(expr const & e) {
}
optional<name> const & get_nested_declaration_name(expr const & d) {
lean_assert(is_nested_declaration(e));
lean_assert(is_nested_declaration(d));
return static_cast<nested_decl_macro_definition_cell const*>(macro_def(d).raw())->get_decl_name();
}
decl_attributes const & get_nested_declaration_attributes(expr const & d) {
lean_assert(is_nested_declaration(e));
lean_assert(is_nested_declaration(d));
return static_cast<nested_decl_macro_definition_cell const*>(macro_def(d).raw())->get_decl_attributes();
}