No warning in VB.NET when function has no return

前端 未结 5 2014
梦如初夏
梦如初夏 2020-12-06 19:47

Some comments on Stack Overflow question Why doesn\'t the C# compiler stop properties from referring to themselves? regarding warnings got me thinking about old issues that

5条回答
  •  一生所求
    2020-12-06 20:05

    That looks like a bug to me. I am able to reproduce it on my end in VS2008 SP1.

    What is interesting is that it DOES work if it is a reference type, but does not if it is a value type.

提交回复
热议问题