Reverted
[mono.git] / mcs / errors / cs0266-4.cs
index 294ba4b82ab7c1e9dabc9d68ddde9c6d102528f8..fc40fddccfc2307730b611e1548e159b4cea50f0 100644 (file)
@@ -1,9 +1,20 @@
-// cs0266.cs: Cannot implicitly convert type `long' to `int'. An explicit conversion exists (are you missing a cast?)
-// Line: 7
-// Compiler options: -unsafe
-
-public unsafe struct C
-{
-    private fixed long test_1 [200000000000];
-}
-
+// cs0266.cs: Cannot implicitly convert type `Bar' to `X'. An explicit conversion exists (are you missing a cast?)\r
+// Line: 18\r
+\r
+public enum Bar\r
+{\r
+       ABar\r
+}\r
+\r
+class X\r
+{\r
+       public static explicit operator X (Bar the_bar)\r
+       {\r
+               return new X();\r
+       }\r
+       \r
+       public static void Main ()\r
+       {\r
+               X x = Bar.ABar;\r
+       }\r
+}\r