feat(frontends/lean/builtin_cmds): improve error message
This commit is contained in:
parent
7242de7238
commit
c2959dc77b
1 changed files with 0 additions and 3 deletions
|
|
@ -665,11 +665,8 @@ static environment compile_cmd(parser & p) {
|
|||
}
|
||||
|
||||
static environment vm_eval_cmd(parser & p) {
|
||||
auto pos = p.pos();
|
||||
expr e; level_param_names ls;
|
||||
std::tie(e, ls) = parse_local_expr(p);
|
||||
if (has_local(e) || has_metavar(e))
|
||||
throw parser_error("invalid vm_eval command, argument must be a closed expression", pos);
|
||||
type_checker tc(p.env());
|
||||
expr type = tc.infer(e);
|
||||
environment new_env = p.env();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue