Why is no warning given for this unused variable?

前端 未结 7 545
-上瘾入骨i
-上瘾入骨i 2020-12-06 16:25

When compiling the following program in VS2010, VS2008 or MonoDevelop on Windows, I get warning CS0219, \"The variable \'y\' is assigned but its value is never used\".

7条回答
提交回复
热议问题