Skip to content

Commit

Permalink
change isimmutable to be defined in terms of ismutable
Browse files Browse the repository at this point in the history
  • Loading branch information
ssikdar1 committed Feb 5, 2020
1 parent a252f5e commit eed8b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,6 @@ julia> isimmutable([1,2])
false
```
"""
isimmutable(@nospecialize(x)) = (@_pure_meta; !typeof(x).mutable)
isimmutable(@nospecialize(x)) = !ismutable(x)

# END 1.5 deprecations

0 comments on commit eed8b67

Please sign in to comment.