Skip to content

Commit

Permalink
Fix era parse condition
Browse files Browse the repository at this point in the history
  • Loading branch information
imaqtkatt committed Aug 15, 2024
1 parent 101ea27 commit 60638d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fun/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ impl<'a> TermParser<'a> {
return Ok(Term::Fan { fan: FanKind::Tup, tag: tag.unwrap_or(Tag::Static), els });
}

if self.try_consume(")") {
if opr == Op::MUL && self.try_consume(")") {
return Ok(Term::Era);
}

Expand Down

0 comments on commit 60638d6

Please sign in to comment.