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

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

using System;

public class A
{
        [Obsolete ("Causes an error", true)]
        public virtual void Test (string arg) {}
}

public class B: A
{
        public override void Test (string arg) {}
}