feat(frontends/lean/parser): allow tactic to be used to fill holes in definitions
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
4229e498d2
commit
21d244d880
1 changed files with 1 additions and 1 deletions
|
@ -1872,7 +1872,7 @@ class parser::imp {
|
||||||
expr val = std::get<1>(r);
|
expr val = std::get<1>(r);
|
||||||
metavar_env menv = std::get<2>(r);
|
metavar_env menv = std::get<2>(r);
|
||||||
check_no_metavar(type, menv, "invalid definition, type still contains metavariables after elaboration");
|
check_no_metavar(type, menv, "invalid definition, type still contains metavariables after elaboration");
|
||||||
if (!is_definition && has_metavar(val)) {
|
if (has_metavar(val)) {
|
||||||
val = apply_tactics(val, menv);
|
val = apply_tactics(val, menv);
|
||||||
} else {
|
} else {
|
||||||
check_no_metavar(val, menv, "invalid definition, value still contains metavariables after elaboration");
|
check_no_metavar(val, menv, "invalid definition, value still contains metavariables after elaboration");
|
||||||
|
|
Loading…
Reference in a new issue