Skip to content

Commit 2798d2c

Browse files
Joe Petviashviliyuyichao
Joe Petviashvili
authored andcommitted
test subtypes(::UnionAll)
1 parent 11724fb commit 2798d2c

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
@@ -612,3 +612,11 @@ end
612612
@generated f18883() = nothing
613613
@test !isempty(sprint(io->code_llvm(io, f18883, Tuple{})))
614614
@test !isempty(sprint(io->code_native(io, f18883, Tuple{})))
615+
616+
# Issue #20086
617+
abstract A20086{T,N}
618+
immutable B20086{T,N} <: A20086{T,N} end
619+
@test subtypes(A20086) == [B20086]
620+
@test subtypes(A20086{Int}) == [B20086{Int}]
621+
@test subtypes(A20086{T,3} where T) == [B20086{T,3} where T]
622+
@test subtypes(A20086{Int,3}) == [B20086{Int,3}]

0 commit comments

Comments
 (0)