The LLVM not drop warning for this:
- (int)test
{
if (YES) {
} else {
@weakify(self);
^{
@strongify(self);
NSLog(@"%@",self.class);
}();
}
}
If I remove weakly and strongly it drop compile error.
- (int)test
{
if (YES) {
} else {
^{
NSLog(@"%@",self.class);
}();
}
} // Control reaches end of non-void function