Skip to content

Commit

Permalink
test subtypes(::UnionAll)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Petviashvili authored and yuyichao committed Jan 29, 2017
1 parent 11724fb commit c6d705e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -612,3 +612,12 @@ end
@generated f18883() = nothing
@test !isempty(sprint(io->code_llvm(io, f18883, Tuple{})))
@test !isempty(sprint(io->code_native(io, f18883, Tuple{})))

# Issue #20086
@test subtypes(Integer) == [BigInt, Bool, Signed, Unsigned]
abstract A20086{T,N}
immutable B20086{T,N} <: A20086{T,N} end
@test subtypes(A20086) == [B20086]
@test subtypes(A20086{Int}) == [B20086{Int}]
@test subtypes(A20086{T,3} where T) == [B20086{T,3} where T]
@test subtypes(A20086{Int,3}) == [B20086{Int,3}]

0 comments on commit c6d705e

Please sign in to comment.