Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0266-13.cs
1 // CS0266: Cannot implicitly convert type `int' to `sbyte'. An explicit conversion exists (are you missing a cast?)
2 // Line: 33
3
4 class A3
5 {
6         public static implicit operator sbyte (A3 mask)
7         {
8                 return 1;
9         }
10
11         public static implicit operator uint (A3 mask)
12         {
13                 return 6;
14         }
15         
16         public static implicit operator long (A3 mask)
17         {
18                 return 7;
19         }
20
21         public static implicit operator ulong (A3 mask)
22         {
23                 return 8;
24         }
25 }
26
27
28 public class C
29 {
30         public static int Main ()
31         {
32                 A3 a3 = null;
33                 sbyte sa3 = -a3;
34         }
35 }