Skip to content

Commit

Permalink
test 0 dim array constructor (#22080)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6071f1a)
  • Loading branch information
KristofferC authored and tkelman committed Jun 3, 2017
1 parent 0750dde commit c133bd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/arrayops.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2101,3 +2101,6 @@ end
Base.:*(a::T11053, b::Real) = T11053(a.a*b)
Base.:(==)(a::T11053, b::T11053) = a.a == b.a
@test [T11053(1)] * 5 == [T11053(1)] .* 5 == [T11053(5.0)]

#15907
@test typeof(Array{Int,0}()) == Array{Int,0}

0 comments on commit c133bd9

Please sign in to comment.