We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 465ff74 commit b497f44Copy full SHA for b497f44
base/abstractarray.jl
@@ -1591,10 +1591,14 @@ eltypeof(x::AbstractArray) = eltype(x)
1591
promote_eltypeof() = error()
1592
promote_eltypeof(v1) = eltypeof(v1)
1593
promote_eltypeof(v1, vs...) = promote_type(eltypeof(v1), promote_eltypeof(vs...))
1594
+promote_eltypeof(v1::T, vs::T...) where {T} = eltypeof(v1)
1595
+promote_eltypeof(v1::AbstractArray{T}, vs::AbstractArray{T}...) where {T} = T
1596
1597
promote_eltype() = error()
1598
promote_eltype(v1) = eltype(v1)
1599
promote_eltype(v1, vs...) = promote_type(eltype(v1), promote_eltype(vs...))
1600
+promote_eltype(v1::T, vs::T...) where {T} = eltype(T)
1601
+promote_eltype(v1::AbstractArray{T}, vs::AbstractArray{T}...) where {T} = T
1602
1603
#TODO: ERROR CHECK
1604
_cat(catdim::Int) = Vector{Any}()
0 commit comments