Swift 2b4: dropFirst dosen't work with String.CharacterView
| Originator: | DaNmarner | ||
| Number: | rdar://21994552 | Date Originated: | 24-Jul-2015 09:15 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | |
| Classification: | Other Bug | Reproducible: | Always |
Summary:
Under certain circumstances, ‘dropFirst’, which promise to work with CollectionType, does’t work with String.ChararcterView.
Steps to Reproduce:
The following code:
extension String {
var dropFirst: String {
return String( dropFirst( characters ) )
}
}
Expected Results:
Should compile.
Actual Results:
Does not compile.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!