From 38422ef1f979c745f970a47891071e4896d900a2 Mon Sep 17 00:00:00 2001 From: Sacha Verweij Date: Fri, 12 May 2017 14:40:55 -0700 Subject: [PATCH] Add NEWS.md entry for getindex(::AbstractString, ::AbstractVector) signature tightening (#20248). --- NEWS.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/NEWS.md b/NEWS.md index 9029abc7acc99..cee236aa9b745 100644 --- a/NEWS.md +++ b/NEWS.md @@ -211,6 +211,14 @@ This section lists changes that do not have deprecation warnings. * The `count` function no longer sums non-boolean values ([#20404]) + * The generic `getindex(::AbstractString, ::AbstractVector)` method's signature has been + tightened to `getindex(::AbstractString, ::AbstractVector{<:Integer})`. Consequently, + indexing into `AbstractString`s with non-`AbstractVector{<:Integer}` `AbstractVector`s + now throws a `MethodError` in the absence of an appropriate specialization. + (Previously such cases failed less explicitly with the exception of + `AbstractVector{Bool}`, which now throws an `ArgumentError` noting that + logical indexing into strings is not supported.) ([#20248]) + * Bessel, Hankel, Airy, error, Dawson, eta, zeta, digamma, inverse digamma, trigamma, and polygamma special functions have been moved from Base to the @@ -501,6 +509,7 @@ Deprecated or removed [#20079]: https://github.com/JuliaLang/julia/issues/20079 [#20164]: https://github.com/JuliaLang/julia/issues/20164 [#20228]: https://github.com/JuliaLang/julia/issues/20228 +[#20248]: https://github.com/JuliaLang/julia/issues/20248 [#20249]: https://github.com/JuliaLang/julia/issues/20249 [#20268]: https://github.com/JuliaLang/julia/issues/20268 [#20321]: https://github.com/JuliaLang/julia/issues/20321