From 43912b9ee07d7abfdf701b5c504a27cc71011f13 Mon Sep 17 00:00:00 2001 From: Michael Abbott <32575566+mcabbott@users.noreply.github.com> Date: Sat, 8 Oct 2022 22:35:21 -0400 Subject: [PATCH] fix 1.6 --- src/functor.jl | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/functor.jl b/src/functor.jl index 91c0301..2612b59 100644 --- a/src/functor.jl +++ b/src/functor.jl @@ -151,10 +151,13 @@ end ### if VERSION < v"1.7" - # Copied verbatim from Base, except omitting the macro: - function ismutabletype(@nospecialize t) - # @_total_meta - t = unwrap_unionall(t) - return isa(t, DataType) && t.name.flags & 0x2 == 0x2 - 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 + + # That doesn't work, but this does: + ismutabletype(@nospecialize t) = t.mutable end