[PATCH] D67983: [ObjC] Diagnose implicit type coercion from ObjC 'Class' to object pointer types.
Nico Weber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 28 09:27:08 PDT 2019
thakis added a comment.
> While the default metaclass does in fact implement the one method NSCopying declares, it's not possible within the language to declare that the Class -- itself, as an instance -- implements the instance methods from the NSCopying protocol.
Should the compiler just know that then?
> You can fix the code just by doing `@{(id)clz : val}`, since id is freely castable to anything.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67983/new/
https://reviews.llvm.org/D67983
More information about the cfe-commits
mailing list