Skip to content

Support array/dictionary subscript syntax via protocols #51

@andyarvanitis

Description

@andyarvanitis

Currently, neither standard Objective-C nor Eero recognize subscript methods declared in protocols, e.g.:

@protocol TypedArray <NSObject, NSFastEnumeration>
-(instancetype) objectAtIndexedSubscript: (NSUInteger)index;
@end

NSNumber<TypedArray> * numberArray = ...
Number n = numberArray[0]; // compile error -- method to read element not found

It might be possible to add this ability to Eero.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions