What happens to be trivial task in Objective-C
- (instancetype)initWithTitle:(NSString *)title {
return [super initWithTitle:title];
//bool but_it_works_in_objective_c;
}
causes short-circuit errors with suggestions: only nil value permitted at return >> Failable initializer 'init(title:)' cannot override a non-failable initializer >> only nil value permitted at return ...
Screenshots with compiler errors from Xcode 9.3 (Swift 4.1)
Long came transitioning from id to returned instancetype seems to have the idea merely to distinguish lack of presence of return in init
family of initializers.
Why such an obvious hint could not make it way to autocorrection then?