2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs0809-2.cs
blobef6793f34ef98a2af2ce7f831a0a410f6199633b
1 // CS0809: Obsolete member `A.Filename' overrides non-obsolete member `Error.Filename'
2 // Line: 8
3 // Compiler options: -warnaserror
5 class A: Error {
6 [System.ObsoleteAttribute ("Obsolete", true)]
7 public override string Filename {
8 set {
12 public static void Main () {}
15 public class Error {
16 public virtual string Filename {
17 set {
19 get {
20 return "aa";
25 class B {
26 void TT () {
27 new A ().Filename = "Filename";