Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / errors / cs0619-24.cs
1 // CS0619: `Obsolete' is obsolete: `'
2 // Line: 19
3 // Compiler options: -unsafe
4
5 class Box {
6         public Helper o;
7 }
8
9 [System.Obsolete("", true)]
10 unsafe struct Obsolete {
11 }
12
13 unsafe struct Helper {}
14
15 class MainClass {
16         unsafe public static void Main ()
17         {
18                 Box b = new Box ();
19                 fixed (Obsolete* p = &b.o)
20                 {
21                 }
22         }
23 }