Skip to content

Commit 68975a9

Browse files
fix: relax type constaint in mutability check
1 parent f99b96a commit 68975a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ Return either [`IsMutable`](@ref) to indicate an object of type `T` can be
261261
modified to be equal to `op(args...)` or [`IsNotMutable`](@ref) otherwise.
262262
"""
263263
function mutability(T::Type, op, args::Vararg{Type,N}) where {N}
264-
if mutability(T) isa IsMutable && promote_operation(op, args...) == T
264+
if mutability(T) isa IsMutable && promote_operation(op, args...) <: T
265265
return IsMutable()
266266
else
267267
return IsNotMutable()

0 commit comments

Comments
 (0)