Equatable and similar protocols should be used anywhere
| Originator: | davbeck | ||
| Number: | rdar://20141776 | Date Originated: | 12-Mar-2015 01:34 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Swift 1.2 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: Because of the way that Equatable is defined, it cannot be used in a variable declaration or as a function argument. This isn’t so bad in and of itself, but if a protocol inherits from Equatable, then it can’t be used anywhere either. Equatable is a vital protocol. There isn’t much you can do without being able to at least tell if 2 things are the same.
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!