Skip to content

Commit

Permalink
Fix position info for equality expr errors (#3429)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattulbrich committed Feb 22, 2024
2 parents 1fb0c10 + 0e66dd9 commit 563cba5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ public SLExpression visitEqualityexpr(JmlParser.EqualityexprContext ctx) {
if (floatResult != null) {
return floatResult;
}
exc.updatePosition(ctx.getStart());
if (tok.getText().equals("==")) {
result = termFactory.eq(result, expr.get(i));
} else {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// exceptionClass: RuntimeException
// msgContains: Error in equality-expression
// position: 12/17
// position: 11/19
// verbose: true
// broken: true

// It's not the best of error messages ...
// and there is no file location information
Expand Down

0 comments on commit 563cba5

Please sign in to comment.