Skip to content

Commit

Permalink
Add a test for #18396.
Browse files Browse the repository at this point in the history
Call a kwarg function in Core.Inference where vector_any was unavailable.
  • Loading branch information
maleadt committed Sep 13, 2016
1 parent 95c26b5 commit 8ea9a72
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/keywordargs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,10 @@ let opts = (:a=>3, :b=>4)
@test g17785(; opts..., a=5, b=6) == (5, 6)
@test g17785(; b=0, opts..., a=5) == (5, 4)
end

# pr #18396, kwargs before Base is defined
eval(Core.Inference, quote
f18396(;kwargs...) = g18396(;kwargs...)
g18396(;x=1,y=2) = x+y
end)
Core.Inference.f18396()

0 comments on commit 8ea9a72

Please sign in to comment.