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.
1 parent ab9762c commit cdc939bCopy full SHA for cdc939b
src/AbstractPatterns/impl/RedyFlavoured.jl
@@ -193,6 +193,10 @@ function init_cache(view_cache::ViewCache)
193
end
194
195
196
+@static if !isdefined(Base, :ismutabletype)
197
+ ismutabletype(x::Type) = x.mutable
198
+end
199
+
200
function myimpl()
201
function cache(f)
202
function apply(env::CompileEnv, target::Target{true})::Cond
@@ -212,7 +216,7 @@ function myimpl()
212
216
if v isa Symbol
213
217
v = QuoteNode(v)
214
218
215
- (isprimitivetype(ty) || ty.size == 0 && !ty.mutable) ?
219
+ (isprimitivetype(ty) || ty.size == 0 && !ismutabletype(ty)) ?
220
CheckCond(:($(target.repr) === $v)) : CheckCond(:($(target.repr) == $v))
221
222
0 commit comments