fix(frontends/lean/util): bug when parsing priorities
This commit is contained in:
parent
840f0ea05d
commit
38c433dbec
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ optional<unsigned> parse_priority(parser & p) {
|
||||||
if (p.curr_is_token(get_priority_tk())) {
|
if (p.curr_is_token(get_priority_tk())) {
|
||||||
p.next();
|
p.next();
|
||||||
auto pos = p.pos();
|
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);
|
pre_val = mk_typed_expr(mk_constant(get_num_name()), pre_val);
|
||||||
expr val = std::get<0>(p.elaborate(pre_val, list<expr>()));
|
expr val = std::get<0>(p.elaborate(pre_val, list<expr>()));
|
||||||
val = normalize(p.env(), val);
|
val = normalize(p.env(), val);
|
||||||
|
|
Loading…
Reference in a new issue