method-5.mm

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· MM 代码 · 共 31 行

MM
31
字号
/* APPLE LOCAL file mainline *//* Do not warn about "slightly" mismatched method signatures if    -Wstrict-selector-match is off.  *//* { dg-do compile } *//* { dg-options "-Wno-strict-selector-match" } */#include <objc/objc.h>typedef enum { en1_1, en1_2 } En1;typedef enum { en2_1, en2_2 } En2;typedef struct { int a, b; } St1;typedef struct { unsigned a, b; } St2;@interface Base- (id) meth1: (En1)arg1;- (St1) window;@end@interface Derived: Base- (id) meth1: (En2)arg1;- (St2)window;@endvoid foo(void) {  id r;  En1 en;  [r meth1:en];  [r window];}

⌨️ 快捷键说明

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