We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a12a46 commit ee0ff08Copy full SHA for ee0ff08
src/array.jl
@@ -22,7 +22,7 @@ function explain_eltype(@nospecialize(T), depth=0; maxdepth=10)
22
msg *= explain_eltype(U, depth+1)
23
end
24
25
- elseif Base.ismutabletype(T)
+ elseif Base.ismutabletype(T) && Base.datatype_fieldcount(T) != 0
26
msg = " "^depth * "$T is a mutable type\n"
27
elseif hasfieldcount(T)
28
msg = " "^depth * "$T is a struct that's not allocated inline\n"
0 commit comments