Skip to content

Commit

Permalink
fixed nasty bug in Type.intersection w.r.t. parameter types
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Jan 9, 2025
1 parent 27e8536 commit fd6ccbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/org/rascalmpl/types/NonTerminalType.java
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@ public boolean intersects(Type other) {
if (other == RascalValueFactory.Tree) {
return true;
}
else if (other.isParameter()) {
return other.intersects(this);
}
else if (other instanceof NonTerminalType) {
return ((NonTerminalType) other).intersectsWithNonTerminal(this);
}
Expand Down

0 comments on commit fd6ccbb

Please sign in to comment.