fix(frontends/lean/structure_instance): incorrect assertions
This commit is contained in:
parent
96fe057d87
commit
47b66b640f
2 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ static expr mk_singleton(parser & p, pos_info const & pos, expr const & e) {
|
|||
|
||||
/* Parse rest of the insertable '{' expr ... */
|
||||
static expr parse_insertable(parser & p, pos_info const & pos, expr const & e) {
|
||||
lean_assert(p.curr_is_token(get_comma_tk()));
|
||||
lean_assert(p.curr_is_token(get_comma_tk()) || p.curr_is_token(get_rcurly_tk()));
|
||||
expr r = mk_singleton(p, pos, e);
|
||||
while (p.curr_is_token(get_comma_tk())) {
|
||||
auto ins_pos = p.pos();
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ public:
|
|||
};
|
||||
|
||||
static expr mk_structure_instance_core(name const & s, list<name> const & fs, unsigned num, expr const * args) {
|
||||
lean_assert(num == length(fs) && num == length(fs) + 1);
|
||||
lean_assert(num == length(fs) || num == length(fs) + 1);
|
||||
macro_definition def(new structure_instance_macro_cell(s, fs));
|
||||
return mk_macro(def, num, args);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue