Skip to content

Commit 63c55d0

Browse files
committed
add test for #18725
1 parent 5103a1c commit 63c55d0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/core.jl

+11
Original file line numberDiff line numberDiff line change
@@ -4822,6 +4822,17 @@ end
48224822
@test f14893() == 14893
48234823
@test M14893.f14893() == 14893
48244824

4825+
# issue #18725
4826+
@test_nowarn begin
4827+
f18725(x) = 1
4828+
f18725(x) = 2
4829+
@test f18725(0) == 2
4830+
end
4831+
@test_warn "WARNING: Method definition f18725(Any) in module Module18725" eval(Main, :(module Module18725
4832+
f18725(x) = 1
4833+
f18725(x) = 2
4834+
end))
4835+
48254836
# issue #19599
48264837
f19599{T}(x::((S)->Vector{S})(T)...) = 1
48274838
@test f19599([1],[1]) == 1

0 commit comments

Comments
 (0)