mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
use record for PrecedenceConflict
This commit is contained in:
parent
c2da776ff4
commit
d22acb521e
6 changed files with 27 additions and 16 deletions
|
@ -720,7 +720,12 @@ pub fn canonicalize_expr<'a>(
|
|||
)
|
||||
}
|
||||
|
||||
ast::Expr::PrecedenceConflict(whole_region, binop1, binop2, _expr) => {
|
||||
ast::Expr::PrecedenceConflict {
|
||||
whole_region,
|
||||
binop1,
|
||||
binop2,
|
||||
expr: _,
|
||||
} => {
|
||||
use roc_problem::can::RuntimeError::*;
|
||||
|
||||
let problem = PrecedenceProblem::BothNonAssociative(*whole_region, *binop1, *binop2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue