[llvm-bugs] [Bug 40224] New: Objective-C: -Wsuper-class-method-mismatch does not respect generics

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 4 05:26:10 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40224

            Bug ID: 40224
           Summary: Objective-C: -Wsuper-class-method-mismatch does not
                    respect generics
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pohilets at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

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)
clang version 7.0.1

Also reported as rdar://47046769

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190104/9fc3cdd7/attachment.html>


More information about the llvm-bugs mailing list