fix(frontends/lean/util): bug when parsing priorities

This commit is contained in:
Leonardo de Moura 2015-10-13 15:38:45 -07:00
parent 840f0ea05d
commit 38c433dbec

View file

@ -477,7 +477,7 @@ optional<unsigned> parse_priority(parser & p) {
if (p.curr_is_token(get_priority_tk())) {
p.next();
auto pos = p.pos();
expr pre_val = p.parse_expr(get_max_prec());
expr pre_val = p.parse_expr();
pre_val = mk_typed_expr(mk_constant(get_num_name()), pre_val);
expr val = std::get<0>(p.elaborate(pre_val, list<expr>()));
val = normalize(p.env(), val);