locked
Xamarin Studio Source Analysis "const" issue RRS feed

  • Question

  • User1465 posted

    Using this line:

    const int MinValue = 0;

    Source Analysis suggests to remove the redundant field initializer. However, if I remove the initialization the compiler produces an error as a const variable needs to be initialized. I guess Source Analysis isn't properly fine tuned here.

    Wednesday, February 27, 2013 3:37 PM

All replies

  • User28 posted

    Thanks for the report, I've filed it as bug 10753. (If you file directly in future, there's less chance it'll be missed).

    Thursday, February 28, 2013 6:36 AM
  • User1465 posted

    Thanks @mhutch. I'll try to remember and post issues myself to bugzilla.

    Thursday, February 28, 2013 8:03 AM