Xcode 7.1b3 isn't checking return types
Xcode 7.1b3 isn't checking return types
- Subject: Xcode 7.1b3 isn't checking return types
- From: Jens Alfke <email@hidden>
- Date: Tue, 20 Oct 2015 18:21:45 -0700
Watch out: the compiler in Xcode 7.1b3 is not detecting mismatched Obj-C return types, at least for methods that return objects. For example, the following compiles with no warnings, even with all typical warning flags enabled:
@interface Foo : NSObject
- (NSString*) name;
@end
@implementation Foo
- (NSSet*) name { return nil; }
@end
Reported to Apple as rdar://23195007
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden