param-1.m
来自「gcc-you can use this code to learn somet」· M 代码 · 共 21 行
M
21 行
/* Test if compiler detects object as an parameter to a method or not. It is not valid. *//* { dg-do compile } */@interface foo@end@implementation foo@end@interface bar-(void) my_method:(foo) my_param; /* { dg-error "can not use an object as parameter to a method" } */@end@implementation bar-(void) my_method:(foo) my_param /* { dg-error "can not use an object as parameter to a method" } */{}@end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?