⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 proto-hier-2.m

📁 linux下编程用 编译软件
💻 M
字号:
/* Test protocol warning.  *//* Contributed by Devang Patel <dpatel@apple.com>.  *//* { dg-do compile } */typedef struct objc_object { struct objc_class *class_pointer; } *id;@protocol Bar@endid <Bar> Foo_Bar () { }typedef struct{        int i;} MyStruct;@interface Foo{  id _mainData;  MyStruct *_anotherData;}-(id) mainDataSource;-(id) anotherDataSource;-(id) my_method: (int) i;@end@implementation Foo-(id) anotherDataSource{        return (id)_anotherData;}-(id) mainDataSource{        return _mainData;}-(id) my_method: (int) i{  id one = [self anotherDataSource];  i = i - 1;  // Do not issue warning about my_method not found in protocol  return [(one ? [self mainDataSource] : one) my_method:i];}@end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -