Merge pull request #54 from triplef/fix-generics

Fix generics definition of NSMutableArray and NSMutableOrderedSet
This commit is contained in:
Fred Kiefer 2019-07-09 18:41:38 +02:00 committed by GitHub
commit 4be70d0802
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -301,7 +301,7 @@ DEFINE_BLOCK_TYPE(GSPredicateBlock, BOOL, GS_GENERIC_TYPE(ElementT), NSUInteger,
@end
@interface GS_GENERIC_CLASS(NSMutableArray, ElementT) : NSArray
@interface GS_GENERIC_CLASS(NSMutableArray, ElementT) : GS_GENERIC_CLASS(NSArray, ElementT)
+ (instancetype) arrayWithCapacity: (NSUInteger)numItems;

View file

@ -159,7 +159,7 @@ extern "C" {
@end
// Mutable Ordered Set
@interface GS_GENERIC_CLASS(NSMutableOrderedSet, __covariant ElementT) : NSOrderedSet
@interface GS_GENERIC_CLASS(NSMutableOrderedSet, ElementT) : GS_GENERIC_CLASS(NSOrderedSet, ElementT)
// Creating a Mutable Ordered Set
+ (instancetype)orderedSetWithCapacity: (NSUInteger)capacity;
- (instancetype)initWithCapacity: (NSUInteger)capacity;