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 fe250fe commit 9a12a46Copy full SHA for 9a12a46
src/array.jl
@@ -45,8 +45,9 @@ end
45
# these are stored with a selector at the end (handled by Julia).
46
# 3. bitstype unions (`Union{Int, Float32}`, etc)
47
# these are stored contiguously and require a selector array (handled by us)
48
+# As well as "mutable singleton" types like `Symbol` that use pointer-identity
49
@inline function check_eltype(name, T)
- if !Base.allocatedinline(T)
50
+ if !(Base.allocatedinline(T) || Base.datatype_fieldcount(T) == 0)
51
explanation = explain_eltype(T)
52
error("""
53
$name only supports element types that are allocated inline.
0 commit comments