Skip to content

Commit 67d9c36

Browse files
authored
nospecialize in displaying SOneTo (JuliaArrays#1198)
1 parent 77abe1b commit 67d9c36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SOneTo.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ function Base.getproperty(::SOneTo{n}, s::Symbol) where {n}
6464
end
6565
end
6666

67-
function Base.show(io::IO, ::SOneTo{n}) where {n}
68-
print(io, "SOneTo(", n::Int, ")")
67+
function Base.show(io::IO, @nospecialize(x::SOneTo))
68+
print(io, "SOneTo(", length(x)::Int, ")")
6969
end
7070

7171
Base.@pure function Base.checkindex(::Type{Bool}, ::SOneTo{n1}, ::SOneTo{n2}) where {n1, n2}

0 commit comments

Comments
 (0)