Skip to content

Commit

Permalink
add test for JuliaLang#18725
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Jan 6, 2017
1 parent 8eeaa24 commit 68eac69
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4822,6 +4822,17 @@ end
@test f14893() == 14893
@test M14893.f14893() == 14893

# issue #18725
@test_nowarn begin
f18725(x) = 1
f18725(x) = 2
@test f18725(0) == 2
end
@test_warn "WARNING: Method definition f18725(Any) in module Module18725" eval(Main, :(module Module18725
f18725(x) = 1
f18725(x) = 2
end))

# issue #19599
f19599{T}(x::((S)->Vector{S})(T)...) = 1
@test f19599([1],[1]) == 1
Expand Down

0 comments on commit 68eac69

Please sign in to comment.