Skip to content

Commit 718c478

Browse files
committed
test for JuliaLang#18348
1 parent 17a1af2 commit 718c478

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/inference.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,3 +501,8 @@ immutable MyType12580{T}<:AbstractMyType12580{T} end
501501
tpara{A<:AbstractMyType12580}(::Type{A}) = tpara(supertype(A))
502502
tpara{I}(::Type{AbstractMyType12580{I}}) = I
503503
@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

0 commit comments

Comments
 (0)