Admit tag destructuring in definitions

This commit is contained in:
ayazhafiz 2021-12-30 19:37:58 -06:00
parent 6a38a2948f
commit 0c81302d29
5 changed files with 46 additions and 1 deletions

View file

@ -410,7 +410,7 @@ impl<'a> ExprState<'a> {
let fail = EExpr::BadOperator(opchar, loc_op.region.start());
Err(fail)
} else if !self.arguments.is_empty() {
} else if !self.expr.value.is_tag() && !self.arguments.is_empty() {
let region = Region::across_all(self.arguments.iter().map(|v| &v.region));
Err(argument_error(region, loc_op.region.start()))