Skip to content

Commit

Permalink
Merge pull request #2127 from usethesource/fix/list-errors
Browse files Browse the repository at this point in the history
Fix type mismatch error messages on lists
  • Loading branch information
DavyLandman authored Jan 22, 2025
2 parents 802eb23 + f1a6e65 commit 3de6c1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/rascalmpl/interpreter/result/Result.java
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,11 @@ protected <U extends IValue> Result<U> subtractList(ListResult that) {
}

protected <U extends IValue> Result<U> multiplyList(ListResult that) {
return that.undefinedError(MULTIPLICATION_STRING, that);
return that.undefinedError(MULTIPLICATION_STRING, this);
}

protected <U extends IValue> Result<U> intersectList(ListResult that) {
return that.undefinedError(INTERSECTION_STRING, that);
return that.undefinedError(INTERSECTION_STRING, this);
}

protected <U extends IValue> Result<U> addSet(SetResult that) {
Expand Down

0 comments on commit 3de6c1f

Please sign in to comment.