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 7eb0e68 commit 43912b9Copy full SHA for 43912b9
src/functor.jl
@@ -151,10 +151,13 @@ end
151
###
152
153
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
+ # # Copied verbatim from Base, except omitting the macro:
+ # function ismutabletype(@nospecialize t)
+ # # @_total_meta
+ # t = Base.unwrap_unionall(t)
+ # return isa(t, DataType) && t.name.flags & 0x2 == 0x2
+ # end
160
+
161
+ # That doesn't work, but this does:
162
+ ismutabletype(@nospecialize t) = t.mutable
163
end
0 commit comments