[PATCH] D36790: [ObjC] Messages to 'self' in class methods should use class method dispatch to avoid multiple method ambiguities

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 16 22:26:46 PDT 2017


rjmccall added a comment.

I think it's fair to treat instancetype as an inherited requirement — that is, the rules of covariant override always apply, which essentially means that overriders of instance-returning methods must also return instancetype whether they say so explicitly or not.  But that's what I'd like Doug to weigh in about; it's possible there are exceptions to that that affect the analysis here.


Repository:
  rL LLVM

https://reviews.llvm.org/D36790





More information about the cfe-commits mailing list