Skip to content

Commit

Permalink
test for JuliaLang#12580
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro3 committed Jan 17, 2017
1 parent 8313964 commit 17a1af2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -494,3 +494,10 @@ immutable MyType18457{T,F,G}<:AbstractMyType18457{T,F,G} end
tpara18457{I}(::Type{AbstractMyType18457{I}}) = I
tpara18457{A<:AbstractMyType18457}(::Type{A}) = tpara18457(supertype(A))
@test tpara18457(MyType18457{true}) === true

# Issue #12580
abstract AbstractMyType12580{T}
immutable MyType12580{T}<:AbstractMyType12580{T} end
tpara{A<:AbstractMyType12580}(::Type{A}) = tpara(supertype(A))
tpara{I}(::Type{AbstractMyType12580{I}}) = I
@test tpara(MyType12580{true})

0 comments on commit 17a1af2

Please sign in to comment.