Skip to content

Commit

Permalink
Tests for issue JuliaLang#12721
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro3 committed Jan 17, 2017
1 parent 8c6254d commit 9b8be01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -515,3 +515,7 @@ f18348{T<:Any}(::Type{T}, x::T) = 2
# Issue #11803
@test TypeVar(:T, Int) <: Int
@test TypeVar(:T, Union{Int,Float64}) <: Union{Int,Float64}

# Issue #12721
f12721{T<:Type{Int}}(::T) = true;
f12721(Float64)

0 comments on commit 9b8be01

Please sign in to comment.