@@ -1108,7 +1108,9 @@ function hcat(Xin::AbstractSparseVector...)
11081108 X = map (_unsafe_unfix, Xin)
11091109 Tv = promote_type (map (eltype, X)... )
11101110 Ti = promote_type (map (indtype, X)... )
1111- r = _absspvec_hcat (map (x -> convert (SparseVector{Tv,Ti}, x), X)... )
1111+ r = (function (:: Type{SV} ) where SV
1112+ _absspvec_hcat (map (x -> convert (SV, x), X)... )
1113+ end )(SparseVector{Tv,Ti})
11121114 return @if_move_fixed Xin... r
11131115end
11141116function _absspvec_hcat (X:: AbstractSparseVector{Tv,Ti} ...) where {Tv,Ti}
@@ -1144,7 +1146,9 @@ function vcat(Xin::AbstractSparseVector...)
11441146 X = map (_unsafe_unfix, Xin)
11451147 Tv = promote_type (map (eltype, X)... )
11461148 Ti = promote_type (map (indtype, X)... )
1147- r = _absspvec_vcat (map (x -> convert (SparseVector{Tv,Ti}, x), X)... )
1149+ r = (function (:: Type{SV} ) where SV
1150+ _absspvec_vcat (map (x -> convert (SV, x), X)... )
1151+ end )(SparseVector{Tv,Ti})
11481152 return @if_move_fixed Xin... r
11491153end
11501154function _absspvec_vcat (X:: AbstractSparseVector{Tv,Ti} ...) where {Tv,Ti}
0 commit comments