Regression: No longer able to add public extensions to generic types in other modules
| Originator: | gordon | ||
| Number: | rdar://19904918 | Date Originated: | 20-Feb-2015 01:52 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Swift 1.2 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: In Xcode 6.1, we were able to create public extensions for generic types that existed in external modules. For example, I could create a public extension on Optional or Array. In Xcode 6.2, this ability was taken away. This feels like an arbitrary restriction, since I can still create extensions on non-generic types from external modules. This restriction should be lifted, since it seriously limits the ability to add useful functionality to types built into the standard lib. Steps to Reproduce: 1. Create an extension on String with a public function 2. Create an extension on Optional with a public function Expected Results: Both extensions are able to be compiled Actual Results: The extension on String can be compiled, but the extension on Optional throws an error Regression: This does not occur in Xcode 6.1
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!