Skip to content

Commit 04a7bf5

Browse files
committed
Define needed function
1 parent ebd5c6b commit 04a7bf5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/array.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ function hasfieldcount(@nospecialize(dt))
1212
return true
1313
end
1414

15+
explain_nonisbits(@nospecialize(T), depth=0) = " "^depth * "$T is not a bitstype\n"
16+
1517
function explain_eltype(@nospecialize(T), depth=0; maxdepth=10)
1618
depth > maxdepth && return ""
1719

@@ -28,7 +30,7 @@ function explain_eltype(@nospecialize(T), depth=0; maxdepth=10)
2830
msg = " "^depth * "$T is a struct that's not allocated inline\n"
2931
for U in fieldtypes(T)
3032
if !Base.allocatedinline(U)
31-
msg *= explain_nonisbits(U, depth+1)
33+
ms *= explain_nonisbits(U, depth+1)
3234
end
3335
end
3436
else

0 commit comments

Comments
 (0)