Skip to content

Commit

Permalink
Revert "add IteratorSize for Char (#29819)"
Browse files Browse the repository at this point in the history
This reverts commit 9eda36f.
  • Loading branch information
KristofferC authored Nov 13, 2018
1 parent 9eda36f commit 0fe03a4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion base/char.jl
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ size(c::AbstractChar,d) = convert(Int, d) < 1 ? throw(BoundsError()) : 1
ndims(c::AbstractChar) = 0
ndims(::Type{<:AbstractChar}) = 0
length(c::AbstractChar) = 1
IteratorSize(::Type{Char}) = HasShape{0}()
firstindex(c::AbstractChar) = 1
lastindex(c::AbstractChar) = 1
getindex(c::AbstractChar) = c
Expand Down
4 changes: 0 additions & 4 deletions test/char.jl
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,3 @@ end
@test reinterpret(UInt32, reinterpret(Char, u)) === u
end
end

@testset "broadcasting of Char" begin
@test identity.('a') == 'a'
end

0 comments on commit 0fe03a4

Please sign in to comment.