Updated with review feedback.
[mono.git] / mcs / errors / cs0619-53.cs
1 // CS0619: `C.explicit operator byte(C)' is obsolete: `gg'
2 // Line: 17
3
4 using System;
5
6 class C
7 {
8         [Obsolete ("gg", true)]
9         public static explicit operator byte (C x)
10         {
11                 return 1;
12         }
13
14         static void Main ()
15         {
16                 C x = null;
17                 var y = (int) x;
18         }
19 }