mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +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) => {
|
ast::Expr::PrecedenceConflict(binop1, binop2, _expr) => {
|
||||||
use roc_problem::can::RuntimeError::*;
|
use roc_problem::can::RuntimeError::*;
|
||||||
|
|
||||||
|
let problem = PrecedenceProblem::BothNonAssociative(binop1.clone(), binop2.clone());
|
||||||
|
|
||||||
|
env.problem(Problem::PrecedenceProblem(problem.clone()));
|
||||||
|
|
||||||
(
|
(
|
||||||
RuntimeError(InvalidPrecedence(
|
RuntimeError(InvalidPrecedence(problem, region)),
|
||||||
PrecedenceProblem::BothNonAssociative(binop1.clone(), binop2.clone()),
|
|
||||||
region,
|
|
||||||
)),
|
|
||||||
Output::default(),
|
Output::default(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue