Skip to content

Commit 9eaea85

Browse files
fix if
1 parent a8e30a8 commit 9eaea85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RecursiveArrayTools.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module RecursiveArrayTools
4545
recursivecopy!(a[i],x)
4646
end
4747
else
48-
if eltype(x) <: Number && x <: Array
48+
if eltype(x) <: Number && typeof(x) <: Array
4949
# Have to check that it's <: Array or can have problems
5050
# with abstract arrays like MultiScaleModels.
5151
push!(a,copy(x))

0 commit comments

Comments
 (0)