2010-04-15 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0266-13.cs
blobc2645ce9c2ff88588ae18abb4e7c56e4499bcbec
1 // CS0266: Cannot implicitly convert type `int' to `sbyte'. An explicit conversion exists (are you missing a cast?)
2 // Line: 33
4 class A3
6 public static implicit operator sbyte (A3 mask)
8 return 1;
11 public static implicit operator uint (A3 mask)
13 return 6;
16 public static implicit operator long (A3 mask)
18 return 7;
21 public static implicit operator ulong (A3 mask)
23 return 8;
28 public class C
30 public static int Main ()
32 A3 a3 = null;
33 sbyte sa3 = -a3;