fix(library): compilation warnings on OSX

This commit is contained in:
Leonardo de Moura 2016-03-01 17:50:28 -08:00
parent 6f766dd33e
commit d54a67cf2e
2 changed files with 4 additions and 4 deletions

View file

@ -1458,7 +1458,7 @@ public:
/** \brief Return the type of a local constant (local or not).
\remark This method allows the customer to store the type of local constants
in a different place. */
virtual expr infer_local(expr const & e) const {
virtual expr infer_local(expr const & e) const override {
state const & s = curr_state();
if (is_href(e)) {
hypothesis const & h = s.get_hypothesis_decl(e);
@ -1468,7 +1468,7 @@ public:
}
}
virtual expr infer_metavar(expr const & m) const {
virtual expr infer_metavar(expr const & m) const override {
if (is_mref(m)) {
state const & s = curr_state();
metavar_decl const * d = s.get_metavar_decl(m);

View file

@ -310,7 +310,7 @@ public:
void set_local_instances(list<expr> const & insts);
environment const & env() const { return m_env; }
virtual environment const & env() const override { return m_env; }
/** \brief Opaque constants are never unfolded by this procedure.
The is_def_eq method will lazily unfold non-opaque constants.
@ -450,7 +450,7 @@ public:
bool is_prop(expr const & e);
/** \brief Infer the type of \c e. */
expr infer(expr const & e);
virtual expr infer(expr const & e) override;
/** \brief Put \c e in whnf, it is a Pi, then return whnf, otherwise return e */
expr try_to_pi(expr const & e);