@@ -493,4 +493,29 @@ abstract AbstractMyType18457{T,F,G}
493
493
immutable MyType18457{T,F,G}<: AbstractMyType18457{T,F,G} end
494
494
tpara18457 {I} (:: Type{AbstractMyType18457{I}} ) = I
495
495
tpara18457 {A<:AbstractMyType18457} (:: Type{A} ) = tpara18457 (supertype (A))
496
- @test tpara18457 (MyType18457{true }) === true
496
+ @test tpara18457 (MyType18457{true }) == true
497
+
498
+ # Issue #12580
499
+ abstract AbstractMyType12580{T}
500
+ immutable MyType12580{T}<: AbstractMyType12580{T} end
501
+ tpara {A<:AbstractMyType12580} (:: Type{A} ) = tpara (supertype (A))
502
+ tpara {I} (:: Type{AbstractMyType12580{I}} ) = I
503
+ @test tpara (MyType12580{true })
504
+
505
+ # Issue #18348
506
+ f18348 {T<:Any} (:: Type{T} , x) = 1
507
+ f18348 {T<:Any} (:: Type{T} , x:: T ) = 2
508
+ @test length (methods (f18348, Tuple{Type{Any},Any})) == 1
509
+
510
+ # Issue #13165
511
+ @test Symmetric{Float64,Matrix{Float64}} <: LinAlg.RealHermSymComplexHerm
512
+ @test Hermitian{Float64,Matrix{Float64}} <: LinAlg.RealHermSymComplexHerm
513
+ @test Hermitian{Complex{Float64},Matrix{Complex{Float64}}} <: LinAlg.RealHermSymComplexHerm
514
+
515
+ # Issue #11803
516
+ @test TypeVar (:T , Int) <: Int
517
+ @test TypeVar (:T , Union{Int,Float64}) <: Union{Int,Float64}
518
+
519
+ # Issue #12721
520
+ f12721 {T<:Type{Int}} (:: T ) = true ;
521
+ @test_throws MethodError f12721 (Float64)
0 commit comments