fix(library/unifier): bug exposed by recent changes

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-08-05 19:02:30 -07:00
parent 069f217215
commit bbc4380a52

View file

@ -62,6 +62,8 @@ bool context_check(expr const & e, buffer<expr> const & locals) {
failed = true;
return false;
}
if (is_metavar(e))
return false; // do not visit type
return has_local(e);
});
return !failed;