[corlib] Make Marshal.BufferToBSTR(Array, int) non-public again (#5670)
[mono.git] / mcs / errors / cs0672.cs
1 // CS0672: 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
4
5 using System;
6
7 public class A
8 {
9         [Obsolete ("Causes an error", true)]
10         public virtual void Test (string arg) {}
11 }
12
13 public class B: A
14 {
15         public override void Test (string arg) {}
16 }
17