Skip to content

Commit

Permalink
Fix type mismatch errors on lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
toinehartman committed Jan 22, 2025
1 parent 0ccf803 commit f1a6e65
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);

Check warning on line 391 in src/org/rascalmpl/interpreter/result/Result.java

View check run for this annotation

Codecov / codecov/patch

src/org/rascalmpl/interpreter/result/Result.java#L391

Added line #L391 was not covered by tests
}

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

Check warning on line 395 in src/org/rascalmpl/interpreter/result/Result.java

View check run for this annotation

Codecov / codecov/patch

src/org/rascalmpl/interpreter/result/Result.java#L395

Added line #L395 was not covered by tests
}

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

0 comments on commit f1a6e65

Please sign in to comment.