Author: marek
Date: 2007-11-07 04:07:08 -0500 (Wed, 07 Nov 2007)
New Revision: 89074

Added:
   trunk/mcs/errors/cs0030-7.cs
Log:
New test.



Added: trunk/mcs/errors/cs0030-7.cs
===================================================================
--- trunk/mcs/errors/cs0030-7.cs        2007-11-07 09:04:29 UTC (rev 89073)
+++ trunk/mcs/errors/cs0030-7.cs        2007-11-07 09:07:08 UTC (rev 89074)
@@ -0,0 +1,28 @@
+// CS0030: Cannot convert type `S' to `E'
+// Line: 10
+
+enum E
+{
+       V
+}
+
+struct S
+{
+       public static explicit operator int (S val)
+       {
+               return 1;
+       }
+}
+
+class C
+{
+       E Foo ()
+       {
+               S s = new S ();
+               return (E) s;
+       }
+
+       public static void Main ()
+       {
+       }
+}


Property changes on: trunk/mcs/errors/cs0030-7.cs
___________________________________________________________________
Name: svn:eol-style
   + native

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to