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 30, 2017
1 parent cee4323 commit 847b8e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -615,3 +615,11 @@ end

# PR #19964
@test isempty(subtypes(Float64))

# Issue #20086
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 847b8e3

Please sign in to comment.