Subclass of Generic Superclass Does Not Respond to Extension Selector
Originator: | aamct | ||
Number: | rdar://24454686 | Date Originated: | 02/02/2016 |
Status: | Open | Resolved: | No |
Product: | iOS SDK | Product Version: | 9.2 |
Classification: | Serious Bug | Reproducible: | Always |
Summary: A subclass of a generic superclass does not respond to a selector that points to a function that exists in an extension of the subclass. This prevents using a target-action pattern with functions in the extension. See attached sample code. Steps to Reproduce: 1. Create a generic superclass. 2. Create a subclass of the generic superclass. 3. Create an extension of the subclass with a function. 4. Call `respondsToSelector:` on the subclass pointing to the function in the extension. Expected Results: `respondsToSelector:` should return true. Actual Results: `respondsToSelector:` returns false. Version: Xcode 7.2 Configuration: iPhone Simulator (iOS 9.2)
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!