retag
[mcs.git] / errors / cs0266-4.cs
blobfc40fddccfc2307730b611e1548e159b4cea50f0
1 // cs0266.cs: Cannot implicitly convert type `Bar' to `X'. An explicit conversion exists (are you missing a cast?)
2 // Line: 18
4 public enum Bar
6 ABar
9 class X
11 public static explicit operator X (Bar the_bar)
13 return new X();
16 public static void Main ()
18 X x = Bar.ABar;