Author: marek
Date: 2008-02-08 08:52:42 -0500 (Fri, 08 Feb 2008)
New Revision: 95245

Added:
   trunk/mcs/errors/cs0120-11.cs
   trunk/mcs/errors/cs1955.cs
Removed:
   trunk/mcs/errors/cs0133-4.cs
Log:
New test + update



Copied: trunk/mcs/errors/cs0120-11.cs (from rev 94740, 
trunk/mcs/errors/cs0133-4.cs)
===================================================================
--- trunk/mcs/errors/cs0133-4.cs        2008-02-04 12:50:34 UTC (rev 94740)
+++ trunk/mcs/errors/cs0120-11.cs       2008-02-08 13:52:42 UTC (rev 95245)
@@ -0,0 +1,7 @@
+// CS0120: `Program.x': An object reference is required for the nonstatic 
field, method or property
+// Line: 6
+
+class Program {
+       int x;
+       const int y = x;
+}

Deleted: trunk/mcs/errors/cs0133-4.cs
===================================================================
--- trunk/mcs/errors/cs0133-4.cs        2008-02-08 13:44:05 UTC (rev 95244)
+++ trunk/mcs/errors/cs0133-4.cs        2008-02-08 13:52:42 UTC (rev 95245)
@@ -1,7 +0,0 @@
-// cs0133-4.cs: The expression being assigned to `Program.y' must be constant
-// Line: 12
-
-class Program {
-       int x;
-       const int y = x;
-}

Added: trunk/mcs/errors/cs1955.cs
===================================================================
--- trunk/mcs/errors/cs1955.cs  2008-02-08 13:44:05 UTC (rev 95244)
+++ trunk/mcs/errors/cs1955.cs  2008-02-08 13:52:42 UTC (rev 95245)
@@ -0,0 +1,20 @@
+// CS1955: The member `Y.x' cannot be used as method or delegate
+// Line: 17
+
+using System;
+
+class Y
+{
+       public int x { get { return 1; } }
+}
+
+class X
+{
+       static int Main ()
+       {
+               Y y = new Y ();
+
+               y.x ();
+               return 0;
+       }
+}

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

Reply via email to