mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
Fix missing report for precedence problem
This commit is contained in:
parent
33d5e528a6
commit
d213c7316b
1 changed files with 6 additions and 4 deletions
|
@ -584,11 +584,13 @@ pub fn canonicalize_expr<'a>(
|
|||
|
||||
ast::Expr::PrecedenceConflict(binop1, binop2, _expr) => {
|
||||
use roc_problem::can::RuntimeError::*;
|
||||
|
||||
let problem = PrecedenceProblem::BothNonAssociative(binop1.clone(), binop2.clone());
|
||||
|
||||
env.problem(Problem::PrecedenceProblem(problem.clone()));
|
||||
|
||||
(
|
||||
RuntimeError(InvalidPrecedence(
|
||||
PrecedenceProblem::BothNonAssociative(binop1.clone(), binop2.clone()),
|
||||
region,
|
||||
)),
|
||||
RuntimeError(InvalidPrecedence(problem, region)),
|
||||
Output::default(),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue