2007-03-28 Chris Toshok <toshok@ximian.com>
[mono-project.git] / mcs / errors / cs0672-2.cs
blob3d151e22cb1ba81d68d8056251804a9468de56c7
1 // cs0672-2.cs: Member `C.Method()' overrides obsolete member `BaseClass.Method()'. Add the Obsolete attribute to `C.Method()'
2 // Line: 14
3 // Compiler options: -warnaserror
5 using System;
7 class BaseClass {
8 [Obsolete]
9 protected virtual void Method () {}
12 class C: BaseClass
14 protected override void Method () {}