Skip to content

Commit

Permalink
Make RegExp type inherently immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshanWeerasinghe committed Jan 17, 2024
1 parent 5f21435 commit 9e6acd2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1498,6 +1498,7 @@ public boolean isInherentlyImmutableType(BType type) {
case TypeTags.INVOKABLE:
case TypeTags.TYPEDESC:
case TypeTags.HANDLE:
case TypeTags.REGEXP:
return true;
case TypeTags.XML:
return getImpliedType(((BXMLType) type).constraint).tag == TypeTags.NEVER;
Expand Down

0 comments on commit 9e6acd2

Please sign in to comment.