Skip to content

Commit 3ead663

Browse files
committed
fix invalidations related to ismutable
1 parent e746ba4 commit 3ead663

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

base/reflection.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,9 @@ true
627627
!!! compat "Julia 1.5"
628628
This function requires at least Julia 1.5.
629629
"""
630-
ismutable(@nospecialize(x)) = (@_total_meta; typeof(x).name.flags & 0x2 == 0x2)
630+
ismutable(@nospecialize(x)) = (@_total_meta; (typeof(x).name::Core.TypeName).flags & 0x2 == 0x2)
631+
# The type assertion above is required to fix some invalidations.
632+
# See also https://github.com/JuliaLang/julia/issues/52134
631633

632634
"""
633635
ismutabletype(T) -> Bool

0 commit comments

Comments
 (0)