Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions src/org/rascalmpl/compiler/lang/rascalcore/check/AType.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ default bool asubtype(AType l, AType r){
return asubtype(l, aliased);
case \start(AType t):
return asubtype(l, t);
case aprod(p):
return asubtype(l, p.def);
case \iter(AType t):
return asubtype(l, t);
case \iter-star(AType t):
Expand Down Expand Up @@ -200,22 +198,6 @@ bool asubtype(ac:acons(AType a, list[AType] ap, list[Keyword] _), AType b){
fail;
}

bool asubtype(ap: aprod(AProduction p), AType b){
switch(b){
case aprod(AProduction q):
return asubtype(p.def, q.def);
case \start(AType t):
return asubtype(ap, t);
case conditional(AType t, _):
return asubtype(ap, t);
case AType t:
return asubtype(p.def, t);
case avalue():
return true;
}
fail;
}

bool asubtype(adt:aadt(str n, list[AType] l, SyntaxRole sr), AType b){
switch(b){
case anode(_):
Expand Down