This project is read-only.
3
Vote

CS0108 Use new keyword should offer a quick fix to add the new keyword

description

If I shadow a method and leave out the new keyword, the only quick fix offered is to add #pragma suppress.

You really should add a quick fix to add the new keyword too.

comments

srivatsn wrote Nov 18, 2014 at 11:46 PM

Thanks, we are planning to do an inventory of all the compiler warnings to see which ones should have codefixes and this one seems straightforward.

SSL wrote Nov 19, 2014 at 12:56 AM

Yes; there are a bunch of warnings that ought to have dedicated quick fixes.
This one was the most glaring; would you like me to file issues for other ones?