mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-15 16:25:05 +00:00
Simplify boolean expr
This commit is contained in:
parent
b04764bdd6
commit
8f7bae3617
1 changed files with 2 additions and 1 deletions
|
@ -413,7 +413,8 @@ impl<'a> ExprState<'a> {
|
|||
let fail = EExpr::BadOperator(opchar, loc_op.region.start());
|
||||
|
||||
Err(fail)
|
||||
} else if !(self.expr.value.is_tag() || self.expr.value.is_opaque())
|
||||
} else if !self.expr.value.is_tag()
|
||||
&& !self.expr.value.is_opaque()
|
||||
&& !self.arguments.is_empty()
|
||||
{
|
||||
let region = Region::across_all(self.arguments.iter().map(|v| &v.region));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue