Skip to content

Commit

Permalink
typeinfo: require no more that Base types handle typeinfo (#28004)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfourquet authored and vtjnash committed Jul 10, 2018
1 parent dafb255 commit 90bdc77
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion base/arrayshow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,6 @@ end
function typeinfo_prefix(io::IO, X)
typeinfo = get(io, :typeinfo, Any)::Type
if !(X isa typeinfo)
@assert typeinfo.name.module (Base, Core) "$(typeof(X)) is not a subtype of $typeinfo"
typeinfo = Any # no error for user-defined types
end
# what the context already knows about the eltype of X:
Expand Down

0 comments on commit 90bdc77

Please sign in to comment.