fix(frontends/lean/parser): save identifier info for undef local

This commit is contained in:
Leonardo de Moura 2014-10-26 10:19:44 -07:00
parent 8e6de93394
commit aed9a88b38

View file

@ -1077,6 +1077,8 @@ expr parser::id_to_expr(name const & id, pos_info const & p) {
if (is_constant(*r)) { if (is_constant(*r)) {
add_ref_index(const_name(*r), p); add_ref_index(const_name(*r), p);
save_identifier_info(p, const_name(*r)); save_identifier_info(p, const_name(*r));
} else if (is_local(*r)) {
save_identifier_info(p, local_pp_name(*r));
} }
return *r; return *r;
} }