File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -634,13 +634,14 @@ is reachable from this type (either in the type itself) or through any fields.
634
634
Note that the type itself need not be immutable. For example, an empty mutable
635
635
type is `ismutabletype`, but also `ismutationfree`.
636
636
"""
637
- function ismutationfree (@nospecialize (t:: Type ))
637
+ function ismutationfree (@nospecialize (t))
638
638
t = unwrap_unionall (t)
639
639
if isa (t, DataType)
640
640
return datatype_ismutationfree (t)
641
641
elseif isa (t, Union)
642
642
return ismutationfree (t. a) && ismutationfree (t. b)
643
643
end
644
+ # TypeVar, etc.
644
645
return false
645
646
end
646
647
@@ -652,7 +653,7 @@ datatype_isidentityfree(dt::DataType) = (@_total_meta; (dt.flags & 0x0200) == 0x
652
653
Determine whether type `T` is identity free in the sense that this type or any
653
654
reachable through its fields has non-content-based identity.
654
655
"""
655
- function isidentityfree (@nospecialize (t:: Type ))
656
+ function isidentityfree (@nospecialize (t))
656
657
t = unwrap_unionall (t)
657
658
if isa (t, DataType)
658
659
return datatype_isidentityfree (t)
You can’t perform that action at this time.
0 commit comments