https://llvm.org/bugs/show_bug.cgi?id=27323
Bug ID: 27323 Summary: Make usable instancetype Objective-C's keyword in generic arguments Product: clang Version: unspecified Hardware: PC OS: All Status: NEW Keywords: new-feature Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangb...@nondot.org Reporter: su.chan.z...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified Currently I can't create class with such method for example: @interface MyClass : NSObject + (NSArray<instancetype> *)arrayOfMyClassesFromArray:(NSArray<NSDictionary *> *)dictArray; @end Maximum that I can achieve is @interface MyClass : NSObject + (NSArray<__kindof MyClass *> *)arrayOfMyClassesFromArray:(NSArray<NSDictionary *> *)dictArray; @end But it's not as type safety as wanted. Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs