Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0672-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d15dce49dec0178de2b654e1a4d99c19892674e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// cs0672.cs: Member 'C.Method()' overrides obsolete member 'BaseClass.Method()'. Add the Obsolete attribute to 'C.Method()'
// Line: 14
// Compiler options: -warnaserror

using System;

class BaseClass {
        [Obsolete]
        protected virtual void Method () {}
}

class C: BaseClass
{
        protected override void Method () {}
}