Author: marek
Date: 2008-02-20 12:29:49 -0500 (Wed, 20 Feb 2008)
New Revision: 96277

Added:
   trunk/mcs/errors/cs0019-26.cs
Log:
New test.



Added: trunk/mcs/errors/cs0019-26.cs
===================================================================
--- trunk/mcs/errors/cs0019-26.cs       2008-02-20 17:29:30 UTC (rev 96276)
+++ trunk/mcs/errors/cs0019-26.cs       2008-02-20 17:29:49 UTC (rev 96277)
@@ -0,0 +1,19 @@
+// CS0019: Operator `&' cannot be applied to operands of type `C.Flags' and 
`int'
+// Line: 16
+
+using System;
+
+class C
+{
+       enum Flags {
+               Removed = 0
+       }
+       
+       public int      _enumFlags;
+               
+       internal void Close()
+       {       
+               if ((Flags.Removed & _enumFlags) == Flags.Removed)
+                       Console.WriteLine ("error");
+       }
+}


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

_______________________________________________
Mono-patches maillist  -  Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to