[SR-4933] Make Substring.filter return String in Swift 4 #47510
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: 030285ad9ef6a48bbf6532d76a7febaf
Issue Description:
The change here #9741 makes
Substring.filter(_: )
return aSubstring
instead ofString
. This is inconsistent with theArray
situation, and also does not make much sense, since the result offilter
is a completely new collection.The text was updated successfully, but these errors were encountered: