Skip to content

Commit

Permalink
Fix JuliaLang#20108 fix JuliaLang#20111: method display errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnorton committed Jan 19, 2017
1 parent 0dfdc2c commit 9f18635
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion base/methodshow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ end
function show(io::IO, m::Method; kwtype::Nullable{DataType}=Nullable{DataType}())
tv, decls, file, line = arg_decl_parts(m)
sig = unwrap_unionall(m.sig)
ft = sig.parameters[1]
ft = unwrap_unionall(sig.parameters[1])
d1 = decls[1]
if sig === Tuple
print(io, m.name)
Expand Down
1 change: 1 addition & 0 deletions base/replutil.jl
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ function show_method_candidates(io::IO, ex::MethodError, kwargs::Vector=Any[])
# If the methods args is longer than input then the method
# arguments is printed as not a match
for (k, sigtype) in enumerate(sig[length(t_i)+1:end])
sigtype = unwrap_unionall(sigtype)
if Base.isvarargtype(sigtype)
sigstr = string(sigtype.parameters[1], "...")
else
Expand Down

0 comments on commit 9f18635

Please sign in to comment.