mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
bump allocate precedence conflict
This commit is contained in:
parent
9208000316
commit
0e7106280c
4 changed files with 17 additions and 13 deletions
|
@ -517,7 +517,7 @@ fn desugar_bin_op<'a>(arena: &'a Bump, loc_expr: &'a Located<Expr<'_>>) -> &'a L
|
|||
},
|
||||
);
|
||||
let region = broken_expr.region;
|
||||
let value = Expr::PrecedenceConflict {
|
||||
let data = roc_parse::ast::PrecedenceConflict {
|
||||
whole_region: loc_expr.region,
|
||||
binop1_position: stack_op.region.start(),
|
||||
binop1: stack_op.value,
|
||||
|
@ -525,6 +525,7 @@ fn desugar_bin_op<'a>(arena: &'a Bump, loc_expr: &'a Located<Expr<'_>>) -> &'a L
|
|||
binop2: bad_op.value,
|
||||
expr: arena.alloc(broken_expr),
|
||||
};
|
||||
let value = Expr::PrecedenceConflict(arena.alloc(data));
|
||||
|
||||
return arena.alloc(Located { region, value });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue