Skip to content

Commit 847b8e3

Browse files
Joe Petviashviliyuyichao
Joe Petviashvili
authored andcommitted
test subtypes(::UnionAll)
1 parent cee4323 commit 847b8e3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/reflection.jl

+8
Original file line numberDiff line numberDiff line change
@@ -615,3 +615,11 @@ end
615615

616616
# PR #19964
617617
@test isempty(subtypes(Float64))
618+
619+
# Issue #20086
620+
abstract A20086{T,N}
621+
immutable B20086{T,N} <: A20086{T,N} end
622+
@test subtypes(A20086) == [B20086]
623+
@test subtypes(A20086{Int}) == [B20086{Int}]
624+
@test subtypes(A20086{T,3} where T) == [B20086{T,3} where T]
625+
@test subtypes(A20086{Int,3}) == [B20086{Int,3}]

0 commit comments

Comments
 (0)