Merge pull request #2314 from lambdageek/dev/local-handles
[mono-project.git] / mcs / errors / cs0672-2.cs
blobf7df463d067a5478713722c6eb7e89abf47e60e7
1 // CS0672: 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 () {}