Skip to content

Commit

Permalink
nospecialize in displaying SOneTo
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub authored Sep 20, 2023
1 parent 03c13a0 commit 8b5c622
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SOneTo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ function Base.getproperty(::SOneTo{n}, s::Symbol) where {n}
end
end

function Base.show(io::IO, ::SOneTo{n}) where {n}
print(io, "SOneTo(", n::Int, ")")
function Base.show(io::IO, @nospecialize(x::SOneTo))
print(io, "SOneTo(", length(x)::Int, ")")
end

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

0 comments on commit 8b5c622

Please sign in to comment.