Skip to content

Commit 43912b9

Browse files
committed
fix 1.6
1 parent 7eb0e68 commit 43912b9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/functor.jl

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,13 @@ end
151151
###
152152

153153
if VERSION < v"1.7"
154-
# Copied verbatim from Base, except omitting the macro:
155-
function ismutabletype(@nospecialize t)
156-
# @_total_meta
157-
t = unwrap_unionall(t)
158-
return isa(t, DataType) && t.name.flags & 0x2 == 0x2
159-
end
154+
# # Copied verbatim from Base, except omitting the macro:
155+
# function ismutabletype(@nospecialize t)
156+
# # @_total_meta
157+
# t = Base.unwrap_unionall(t)
158+
# return isa(t, DataType) && t.name.flags & 0x2 == 0x2
159+
# end
160+
161+
# That doesn't work, but this does:
162+
ismutabletype(@nospecialize t) = t.mutable
160163
end

0 commit comments

Comments
 (0)