Skip to content

Commit

Permalink
test for JuliaLang#18348
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro3 committed Jan 17, 2017
1 parent 17a1af2 commit 718c478
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -501,3 +501,8 @@ immutable MyType12580{T}<:AbstractMyType12580{T} end
tpara{A<:AbstractMyType12580}(::Type{A}) = tpara(supertype(A))
tpara{I}(::Type{AbstractMyType12580{I}}) = I
@test tpara(MyType12580{true})

# Issue #18348
f18348{T<:Any}(::Type{T}, x) = 1
f18348{T<:Any}(::Type{T}, x::T) = 2
@test length(methods(f18348, Tuple{Type{Any},Any})) == 1

0 comments on commit 718c478

Please sign in to comment.