We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b91d803 + abb4359 commit 3bd5aa6Copy full SHA for 3bd5aa6
src/ArrayInterface.jl
@@ -136,11 +136,15 @@ ismutable(::Type{<:Base.ImmutableDict}) = false
136
ismutable(::Type{BigFloat}) = false
137
ismutable(::Type{BigInt}) = false
138
function ismutable(::Type{T}) where {T}
139
- if parent_type(T) <: T
140
- return T.mutable
+ if parent_type(T) <: T
+ if VERSION ≥ v"1.7.0-DEV.1208"
141
+ return Base.ismutabletype(T)
142
else
- return ismutable(parent_type(T))
143
+ return T.mutable
144
end
145
+ else
146
+ return ismutable(parent_type(T))
147
+ end
148
149
150
# Piracy
0 commit comments