From 0fe03a4d62fc5653a1d22fdf3e082270ac5ac35f Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Tue, 13 Nov 2018 16:38:40 -0500 Subject: [PATCH] Revert "add IteratorSize for Char (#29819)" This reverts commit 9eda36ffa1aa96ddf0ecac3add1144fafc4f9cc9. --- base/char.jl | 1 - test/char.jl | 4 ---- 2 files changed, 5 deletions(-) diff --git a/base/char.jl b/base/char.jl index 43eb92f0470d1..95c3d624b5c1a 100644 --- a/base/char.jl +++ b/base/char.jl @@ -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 diff --git a/test/char.jl b/test/char.jl index 3a2c54b76d3bb..e5fca3f6807d7 100644 --- a/test/char.jl +++ b/test/char.jl @@ -286,7 +286,3 @@ end @test reinterpret(UInt32, reinterpret(Char, u)) === u end end - -@testset "broadcasting of Char" begin - @test identity.('a') == 'a' -end