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

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

using System;

public class A {
	[Obsolete()]
	public virtual string Warning {
		get { return ""; }
	}
}

public class B : A {
	public override string Warning {
		get { return ""; }
	}
}