Skip to content

Commit

Permalink
added assert
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Nov 17, 2023
1 parent 366d3cc commit e3b4411
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/org/rascalmpl/types/ModifySyntaxRole.java
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,8 @@ protected Type glbWithModifySyntax(RascalType type) {

@Override
protected boolean isSupertypeOf(Type type) {
return type.isSubtypeOf(this);
assert isOpen();
return type.isBottom() || type.isAbstractData();
}

@Override
Expand Down Expand Up @@ -826,7 +827,7 @@ public Type asAbstractDataType() {

@Override
abstract public boolean match(Type matched, Map<Type, Type> bindings) throws FactTypeUseException;

@Override
public IValue randomValue(Random random, IValueFactory vf, TypeStore store, Map<Type, Type> typeParameters,
int maxDepth, int maxBreadth) {
Expand Down

0 comments on commit e3b4411

Please sign in to comment.