Skip to content

Commit 731e052

Browse files
committed
1 parent 643fe95 commit 731e052

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/arrayops.jl

+8
Original file line numberDiff line numberDiff line change
@@ -1926,3 +1926,11 @@ using TestHelpers.OAs
19261926
@test accumulate(op, [10,20, 30]) == [10, op(10, 20), op(op(10, 20), 30)] == [10, 40, 110]
19271927
@test accumulate(op, [10 20 30], 2) == [10 op(10, 20) op(op(10, 20), 30)] == [10 40 110]
19281928
end
1929+
1930+
# issue #11053
1931+
type T11053
1932+
a::Float64
1933+
end
1934+
Base.:*(a::T11053, b::Real) = T11053(a.a*b)
1935+
Base.:(==)(a::T11053, b::T11053) = a.a == b.a
1936+
@test [T11053(1)] * 5 == [T11053(1)] .* 5 == [T11053(5.0)]

0 commit comments

Comments
 (0)