File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1591,10 +1591,14 @@ eltypeof(x::AbstractArray) = eltype(x)
15911591promote_eltypeof () = error ()
15921592promote_eltypeof (v1) = eltypeof (v1)
15931593promote_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
15941596
15951597promote_eltype () = error ()
15961598promote_eltype (v1) = eltype (v1)
15971599promote_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
15981602
15991603# TODO : ERROR CHECK
16001604_cat (catdim:: Int ) = Vector {Any} ()
You can’t perform that action at this time.
0 commit comments