diff --git a/ext/StructArraysStaticArraysExt.jl b/ext/StructArraysStaticArraysExt.jl index 14df4325..1fa81804 100644 --- a/ext/StructArraysStaticArraysExt.jl +++ b/ext/StructArraysStaticArraysExt.jl @@ -73,8 +73,7 @@ end first_staticarray = first_statictype(a...) elements, ET = if prod(newsize) == 0 # Use inference to get eltype in empty case (following StaticBroadcast defined in StaticArrays.jl) - eltys = Tuple{map(eltype, a)...} - (), Core.Compiler.return_type(f, eltys) + (), Base.promote_op(f, map(eltype, a)...) else temp = __broadcast(f, sz, s, a...) temp, eltype(temp)