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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to