fix(library/tactic/exact_tactic): do not report unassigned metavariables in the 'refine' tactic

This commit is contained in:
Leonardo de Moura 2015-05-03 20:39:51 -07:00
parent 87aaf373f4
commit 3c8c75470f

View file

@ -33,7 +33,7 @@ tactic exact_tactic(elaborate_fn const & elab, expr const & e, bool enforce_type
return none_proof_state(); return none_proof_state();
} }
expr t = head(gs).get_type(); expr t = head(gs).get_type();
bool report_unassigned = enforce_type_during_elaboration; bool report_unassigned = !allow_metavars && enforce_type_during_elaboration;
optional<expr> new_e; optional<expr> new_e;
try { try {
new_e = elaborate_with_respect_to(env, ios, elab, new_s, e, some_expr(t), new_e = elaborate_with_respect_to(env, ios, elab, new_s, e, some_expr(t),