Skip to content

Commit 32e0c99

Browse files
committed
Fix reflection doctest
1 parent 31feb69 commit 32e0c99

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

base/reflection.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,10 +1218,12 @@ See also [`applicable`](@ref).
12181218
julia> hasmethod(length, Tuple{Array})
12191219
true
12201220
1221-
julia> hasmethod(sum, Tuple{Function, Array}, (:dims,))
1221+
julia> f(; orange) = orange;
1222+
1223+
julia> hasmethod(f, Tuple{}, (:orange,))
12221224
true
12231225
1224-
julia> hasmethod(sum, Tuple{Function, Array}, (:apples, :bananas))
1226+
julia> hasmethod(f, Tuple{}, (:apples, :bananas))
12251227
false
12261228
12271229
julia> g(; xs...) = 4;

0 commit comments

Comments
 (0)