Skip to content

Commit 25c1a4a

Browse files
simonbyrneKristofferC
authored andcommitted
Fix indexing with Union{} array (#30146)
(cherry picked from commit 024bcb7)
1 parent d31a35f commit 25c1a4a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/abstractarray.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,3 +917,8 @@ end
917917
X = [1,2,3]
918918
@test isempty(X[Union{}[]])
919919
end
920+
921+
@testset "Issue 30145" begin
922+
X = [1,2,3]
923+
@test isempty(X[Union{}[]])
924+
end

0 commit comments

Comments
 (0)