Skip to content

Commit

Permalink
call deprecation needs to support keyword args
Browse files Browse the repository at this point in the history
this fixes Rif.jl tests
  • Loading branch information
JeffBezanson committed Jan 25, 2016
1 parent 05c93d4 commit 3661f16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -986,9 +986,9 @@ end
@deprecate isgeneric(f) isa(f,Function)

# need to do this manually since the front end deprecates method defs of `call`
const call = @eval function(f,args...)
const call = @eval function(f, args...; kw...)
$(Expr(:meta, :noinline))
depwarn("call(f,args...) is deprecated, use f(args...) instead.", :call)
f(args...)
f(args...; kw...)
end
export call

0 comments on commit 3661f16

Please sign in to comment.