Skip to content

Commit

Permalink
Added parentheses (ht to typechecker)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Mar 13, 2024
1 parent 1d33656 commit 1bdcc3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/rascalmpl/library/util/Reflective.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ tuple[str,str] splitFileExtension(str path){
str getModuleName(loc moduleLoc, PathConfig pcfg){
modulePath = moduleLoc.path;

if(!moduleLoc.extension in {"rsc", "tpl"}){
if(!(moduleLoc.extension in {"rsc", "tpl"})){

This comment has been minimized.

Copy link
@DavyLandman

DavyLandman Mar 13, 2024

Member

Fun stuff, we have a dedicated operator for this: notin

This comment has been minimized.

Copy link
@PaulKlint

PaulKlint Mar 13, 2024

Author Member

Indeed, that is a better solution.

throw "Not a Rascal source or tpl file: <moduleLoc>";
}

Expand Down

0 comments on commit 1bdcc3f

Please sign in to comment.