Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions base/essentials.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,10 @@ struct Colon <: Function
end
const (:) = Colon()

function show(io::IO, ::Colon)
show_type_name(io, Colon.name)
print(io, "()")
end

"""
Val(c)
Expand Down
1 change: 0 additions & 1 deletion contrib/juliac/juliac-trim-base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ end
print(io, T.var.name)
end
end
show_type_name(io::IO, tn::Core.TypeName) = print(io, tn.name)
# this function is not `--trim`-compatible if it resolves to a Varargs{...} specialization
# and since it only has 1-argument methods this happens too often by default (just 2-3 args)
setfield!(typeof(throw_eachindex_mismatch_indices).name, :max_args, Int32(5), :monotonic)
Expand Down
2 changes: 2 additions & 0 deletions test/trimming/trimmability.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@ function @main(args::Vector{String})::Cint
catch
end

Base.donotdelete(reshape([1,2,3],:,1,1))

return 0
end