From a294fd84d919a6aa887c3c8a473d30afdd4a5c78 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Wed, 1 Jul 2020 04:55:54 -0500 Subject: [PATCH] Delete `show(::IO, ::Type)` specialization Overloading `show` for types is strongly discouraged. I'm currently tracking down a Julia segfault that's caused by this line. Refs: - https://github.com/JuliaMath/FixedPointNumbers.jl/pull/11 - https://github.com/PainterQubits/Unitful.jl/issues/321 --- src/viewtypes.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/src/viewtypes.jl b/src/viewtypes.jl index f4b3a321..e1e4d2eb 100644 --- a/src/viewtypes.jl +++ b/src/viewtypes.jl @@ -35,7 +35,6 @@ struct TupleView{T, N, Skip, A} <: AbstractVector{T} data::A connect::Bool end -Base.show(io::IO, ::Type{<: TupleView{T, N, Skip}}) where {T, N, Skip} = print(io, "TupleView{$T, $Skip}") function Base.size(x::TupleView{T, N, M}) where {T, N, M} nitems = length(x.data) รท (N - (N - M))