Skip to content

Commit 55ac89d

Browse files
Mark tuples as not mutable
1 parent e37c451 commit 55ac89d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ArrayInterface.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ function ismutable end
1212
Query whether a type is mutable or not, see
1313
https://github.com/JuliaDiffEq/RecursiveArrayTools.jl/issues/19.
1414
"""
15-
ismutable(x) = ismutable(typeof(x))
15+
ismutable(x) = (@show x; ismutable(typeof(x)))
1616

1717
ismutable(::Type{<:AbstractArray}) = true
1818
ismutable(::Type{<:Number}) = false
1919
ismutable(::Type{<:AbstractRange}) = false
20+
ismutable(::Type{<:Tuple}) = false
2021

2122
# Piracy
2223
function Base.setindex(x::AbstractArray,v,i...)

0 commit comments

Comments
 (0)