Skip to content

Commit

Permalink
Fix indexing with Union{} array (#30146)
Browse files Browse the repository at this point in the history
(cherry picked from commit 024bcb7)
  • Loading branch information
simonbyrne authored and KristofferC committed Feb 20, 2020
1 parent d31a35f commit 25c1a4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -917,3 +917,8 @@ end
X = [1,2,3]
@test isempty(X[Union{}[]])
end

@testset "Issue 30145" begin
X = [1,2,3]
@test isempty(X[Union{}[]])
end

0 comments on commit 25c1a4a

Please sign in to comment.