diff --git a/test/strings/basic.jl b/test/strings/basic.jl index dc6bb960401c79..49e0a4ac108832 100644 --- a/test/strings/basic.jl +++ b/test/strings/basic.jl @@ -555,7 +555,8 @@ mutable struct CharStr <: AbstractString chars::Vector{Char} CharStr(x) = new(collect(x)) end -Base.iterate(x::CharStr, i::Integer=1) = iterate(x.chars, i) +Base.iterate(x::CharStr) = iterate(x.chars) +Base.iterate(x::CharStr, state) = iterate(x.chars, state) Base.lastindex(x::CharStr) = lastindex(x.chars) @testset "cmp without UTF-8 indexing" begin # Simple case, with just ANSI Latin 1 characters