Objective-C: -Wsuper-class-method-mismatch does not respect generics
Originator: | pohilets | ||
Number: | rdar://47046769 | Date Originated: | 4/01/2018 |
Status: | Open | Resolved: | |
Product: | Xcode | Product Version: | 10.0 |
Classification: | Other Bug | Reproducible: | Always |
Summary: When compiled with -Wsuper-class-method-mismatch attached code snippet raises a warning: "Method parameter type 'NSMutableArray *__strong' does not match super class method parameter type 'NSArray *__strong'", while it should not. https://pastebin.com/1DjCDXmG Expected Results: Compilation should pass without any warnings Actual Results: Warning is raised Version/Build: Version 10.0 (10A255) Toolchain: Xcode 10.0 Apple LLVM version 10.0.0 (clang-1000.11.45.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!