LoLocal declaration of 'XXX' hid

2016-11-14  本文已影响0人  宁静1致远

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

上一篇 下一篇

猜你喜欢

热点阅读