fix(kernel/metavar): compilation error in some compilers
This commit is contained in:
parent
6285c3a217
commit
1ce3b83d79
2 changed files with 3 additions and 3 deletions
|
@ -337,7 +337,7 @@ name_set substitution::get_occs(name const & m, name_set & fresh) {
|
|||
}
|
||||
}
|
||||
|
||||
bool substitution::occurs_expr(name const & m, expr const & e) const {
|
||||
bool substitution::occurs_expr(name const & m, expr const & e) {
|
||||
if (!has_expr_metavar(e))
|
||||
return false;
|
||||
name_set fresh;
|
||||
|
|
|
@ -105,7 +105,7 @@ public:
|
|||
optional<level> get_level(level const & m) const { lean_assert(is_meta(m)); return get_level(meta_id(m)); }
|
||||
|
||||
/** \brief Return true iff the metavariable \c m occurrs (directly or indirectly) in \c e. */
|
||||
bool occurs_expr(name const & m, expr const & e) const;
|
||||
bool occurs(expr const & m, expr const & e) const { lean_assert(is_metavar(m)); return occurs_expr(mlocal_name(m), e); }
|
||||
bool occurs_expr(name const & m, expr const & e);
|
||||
bool occurs(expr const & m, expr const & e) { lean_assert(is_metavar(m)); return occurs_expr(mlocal_name(m), e); }
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue