You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, when an override of a virtual member adds Obsolete, we do not warn that the method is obsoleted when the derived type is statically known as the receiver. For example:
abstractclassBase{publicabstractvoidM();}classDerived:Base{[Obsolete]publicoverridevoidM()=>thrownull;publicvoidM2(){M();// No warning}}
This is something that we can detect at warn about.
Design meetings
The text was updated successfully, but these errors were encountered:
Show obsolete errors from overrides
Summary
Today, when an override of a virtual member adds
Obsolete
, we do not warn that the method is obsoleted when the derived type is statically known as the receiver. For example:This is something that we can detect at warn about.
Design meetings
The text was updated successfully, but these errors were encountered: