Skip to content

Commit 499dbf6

Browse files
Merge pull request #25 from DhairyaLGandhi/dg/hotfix
HOTFIX: correctly pick the type for ArrayRepack
2 parents b7395d9 + 714e54f commit 499dbf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ struct ArrayRepack{T}
88
end
99
function (f::ArrayRepack)(A)
1010
@assert length(A) == prod(size(f.x))
11-
if has_trivial_array_constructor(f.type, A)
11+
if has_trivial_array_constructor(typeof(f.x), A)
1212
restructure(f.x, A)
1313
else
1414
error("The original type $(typeof(f.x)) does not support the SciMLStructures interface via the AbstractArray `repack` rules. No method exists to take in a regular array and construct the parent type back. Please define the SciMLStructures interface for this type.")

0 commit comments

Comments
 (0)