Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-4933] Make Substring.filter return String in Swift 4 #47510

Closed
moiseev mannequin opened this issue May 19, 2017 · 2 comments
Closed

[SR-4933] Make Substring.filter return String in Swift 4 #47510

moiseev mannequin opened this issue May 19, 2017 · 2 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@moiseev
Copy link
Mannequin

moiseev mannequin commented May 19, 2017

Previous ID SR-4933
Radar rdar://problem/32285011
Original Reporter @moiseev
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee @airspeedswift
Priority Medium

md5: 030285ad9ef6a48bbf6532d76a7febaf

Issue Description:

The change here #9741 makes Substring.filter(_: ) return a Substring instead of String. This is inconsistent with the Array situation, and also does not make much sense, since the result of filter is a completely new collection.

@moiseev
Copy link
Mannequin Author

moiseev mannequin commented May 19, 2017

@swift-ci create
/cc @airspeedswift

@benrimmington
Copy link
Collaborator

Implemented by @airspeedswift in apple/swift#10871

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

1 participant