美文网首页
LoLocal declaration of 'XXX' hid

LoLocal declaration of 'XXX' hid

作者: 宁静1致远 | 来源:发表于2016-11-14 17:19 被阅读0次

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

相关文章

网友评论

      本文标题:LoLocal declaration of 'XXX' hid

      本文链接:https://www.haomeiwen.com/subject/kmghpttx.html