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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to