Local declaration of 'XXX' hides instance variable

来源:互联网 发布:编程语言设计Pdf 编辑:程序博客网 时间:2024/05/22 16:59

今天调试程序遇到这么一个警告!
Local declaration of ‘XXX’ hides instance variable
遇到这种原因,是因为本地变量跟函数参数变量同名。开来,还是要注意变量的命名啊!

原文

1 0
原创粉丝点击