Avatar
omochimetaru 9/19/2017 6:20 AM
[omochi@omochi-iMac swpr]$ cat b.m #import <Foundation/Foundation.h> @interface Cat : NSObject @end @interface Cat (NSDeprecated) - (int)nya; @end @implementation Cat @end int main() { Cat * cat = [[Cat alloc] init]; return cat.nya; } [omochi@omochi-iMac swpr]$ clang -fobjc-arc b.m
6:20 AM
警告は出なかった
6:21 AM
(検証がこれであってるか不安)