Skip to content

Commit

Permalink
Fixed error in type parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Mar 24, 2024
1 parent e51bbe7 commit eb4fb31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/rascalmpl/library/Relation.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ import Relation;
rangeR({<1,10>, <2,20>, <3,30>}, {30, 10});
```
}
public rel[&T0,&T1] rangeR (rel[&T0,&T1] R, set[&T2] S)
public rel[&T0,&T1] rangeR (rel[&T0,&T1] R, set[&T1] S)
{
return { <V0, V1> | <&T0 V0, &T1 V1> <- R, V1 in S };
}
Expand All @@ -379,7 +379,7 @@ import Relation;
rangeX({<1,10>, <2,20>, <3,30>}, {30, 10});
```
}
public rel[&T0,&T1] rangeX (rel[&T0,&T1] R, set[&T2] S)
public rel[&T0,&T1] rangeX (rel[&T0,&T1] R, set[&T1] S)
{
return { <V0, V1> | <&T0 V0, &T1 V1> <- R, V1 notin S };
}
Expand Down

0 comments on commit eb4fb31

Please sign in to comment.