Custom getter in combination w/ instance method sharing the property name raises exception #299

Closed
nerdsRob opened this Issue Jan 4, 2013 · 2 comments

Projects

None yet

2 participants

Contributor
nerdsRob commented Jan 4, 2013

"Getter or Setter does not match exception" raised in GBMethodData validateMergeWith:(GBMethodData *)source when code looks like this

Foo.h
@property (nonatomic, assign, readonly, getter=hasNext) BOOL next;
- (void)next;

Foo.m
- (void)next { [self doSomething]; }

How about checking the @property data type against the method's return type?

@nerdsRob nerdsRob added a commit to nerdsRob/appledoc that referenced this issue Jan 4, 2013
@nerdsRob nerdsRob should fix issue #299 c89c984
Owner
tomaz commented Jan 5, 2013

Will check pull request. This should have been working otherwise...

Owner
tomaz commented May 17, 2013

Is this working now? Am closing the tickets, but feel free to reopen it or comment in case there's additional problem...

@tomaz tomaz closed this May 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment