Skip to content

Commit

Permalink
print type names fully qualified, e.g. Core.Int64.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Nov 21, 2014
1 parent 6061806 commit d41d059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function show(io::IO, x::DataType)
if isvarargtype(x)
print(io, x.parameters[1], "...")
else
print(io, x.name.name)
show(io, x.name)
if length(x.parameters) > 0
show_comma_array(io, x.parameters, '{', '}')
end
Expand All @@ -103,7 +103,7 @@ macro show(exs...)
return blk
end

show(io::IO, tn::TypeName) = print(io, tn.name)
show(io::IO, tn::TypeName) = print(io, "$(tn.module).$(tn.name)")
show(io::IO, ::Void) = print(io, "nothing")
show(io::IO, b::Bool) = print(io, b ? "true" : "false")
show(io::IO, n::Signed) = (write(io, dec(n)); nothing)
Expand Down

0 comments on commit d41d059

Please sign in to comment.