Skip to content

Commit d5edd11

Browse files
Test case for issue 13315.
1 parent 51b6d24 commit d5edd11

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/abstractarray.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,12 @@ function test_vcat_depwarn(::Type{TestAbstractArray})
452452
end
453453
end
454454

455+
# Issue 13315
456+
function test_13315(::Type{TestAbstractArray})
457+
U = UInt(1):UInt(2)
458+
@test [U;[U;]] == [UInt(1), UInt(2), UInt(1), UInt(2)]
459+
end
460+
455461
#----- run tests -------------------------------------------------------------#
456462

457463
for T in (T24Linear, TSlow), shape in ((24,), (2, 12), (2,3,4), (1,2,3,4), (4,3,2,1))
@@ -471,3 +477,4 @@ test_map(TestAbstractArray)
471477
test_map_promote(TestAbstractArray)
472478
test_UInt_indexing(TestAbstractArray)
473479
test_vcat_depwarn(TestAbstractArray)
480+
test_13315(TestAbstractArray)

0 commit comments

Comments
 (0)