2009-10-22 Marek Safar <marek.safar@gmail.com>
[mcs.git] / errors / cs0672.cs
blob6d53b4c03873ec61b45b39f0716fb776c902a3a1
1 // cs0672.cs: Member `B.Test(string)' overrides obsolete member `A.Test(string)'. Add the Obsolete attribute to `B.Test(string)'
2 // Line: 15
3 // Compiler options: -warnaserror
5 using System;
7 public class A
9 [Obsolete ("Causes an error", true)]
10 public virtual void Test (string arg) {}
13 public class B: A
15 public override void Test (string arg) {}