Skip to content

Commit

Permalink
Small cosmetic correction to merged PR #7322
Browse files Browse the repository at this point in the history
as suggested by @tkelman
  • Loading branch information
mauro3 committed Apr 22, 2015
1 parent 237cdab commit 59d7a37
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions base/interactiveutil.jl
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,8 @@ code_warntype(f, t::ANY) = code_warntype(STDOUT, f, t)

typesof(args...) = Tuple{map(a->(isa(a,Type) ? Type{a} : typeof(a)), args)...}

gen_call_with_extracted_types(fcn, ex0::Symbol) = Expr(:call, fcn, Meta.quot(ex0))
function gen_call_with_extracted_types(fcn, ex0)
if isa(ex0, Symbol)
return Expr(:call, fcn, Meta.quot(ex0))
end
if isa(ex0, Expr) &&
any(a->(Meta.isexpr(a, :kw) || Meta.isexpr(a, :parameters)), ex0.args)
# keyword args not used in dispatch, so just remove them
Expand Down

0 comments on commit 59d7a37

Please sign in to comment.