Fix generics definition of NSMutableArray and NSMutableOrderedSet.

The generic element was not passed on to the superclass.
This commit is contained in:
Frederik Seiffert 2019-07-09 17:19:22 +02:00
parent eaa352d436
commit 51d97e9d98
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;