Skip to content

Commit c247382

Browse files
authored
Merge pull request #425 from JuliaArrays/ksh/promotype
PromoteType for MArray
2 parents c55193b + 7d9b462 commit c247382

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/MArray.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,5 +161,6 @@
161161
@test @inferred(promote_type(MVector{1,Float64}, MVector{1,BigFloat})) == MVector{1,BigFloat}
162162
@test @inferred(promote_type(MVector{2,Int}, MVector{2,Float64})) === MVector{2,Float64}
163163
@test @inferred(promote_type(MMatrix{2,3,Float32,6}, MMatrix{2,3,Complex{Float64},6})) === MMatrix{2,3,Complex{Float64},6}
164+
@test @inferred(promote_type(MArray{Tuple{2, 2, 2, 2},Float32, 4, 16}, MArray{Tuple{2, 2, 2, 2}, Complex{Float64}, 4, 16})) === MArray{Tuple{2, 2, 2, 2}, Complex{Float64}, 4, 16}
164165
end
165166
end

0 commit comments

Comments
 (0)