swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.23k stars 10.32k forks source link

[SR-4934] filter on slice types should return slice's base type. #47511

Open ee21ea02-9d7a-4385-8c3c-ad21e8e490a8 opened 7 years ago

ee21ea02-9d7a-4385-8c3c-ad21e8e490a8 commented 7 years ago
Previous ID SR-4934
Radar rdar://problem/32285084
Original Reporter @moiseev
Type Bug
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | Standard Library | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 9bee34c6946a1825e1ee5936bee83421

Issue Description:

When conditional conformances are available, slice types (or type) should provide an overload of filter that returns a base type.
Note: RangeReplaceable provides a default implementation of filter that returns Self.

ee21ea02-9d7a-4385-8c3c-ad21e8e490a8 commented 7 years ago

@swift-ci create
/cc @airspeedswift