feat(library/tactic/exact_tactic): use 'append' instead of 'orelse' at eassumption 'tactic'

This commit is contained in:
Leonardo de Moura 2015-06-16 11:58:10 -07:00
parent 169f956143
commit 2277b170f6

View file

@ -108,10 +108,14 @@ static tactic assumption_tactic_core(bool conservative) {
--i;
expr const & h = hs[i];
tactic curr = exact_tactic(elab, h, false, false, conservative);
if (tac)
tac = orelse(*tac, curr);
else
if (tac) {
if (conservative)
tac = orelse(*tac, curr);
else
tac = append(*tac, curr);
} else {
tac = curr;
}
}
if (tac) {
return (*tac)(env, ios, s);