Author: marek
Date: 2007-10-15 12:30:17 -0400 (Mon, 15 Oct 2007)
New Revision: 87521

Added:
   trunk/mcs/errors/cs0082-2.cs
   trunk/mcs/errors/cs0082-3.cs
   trunk/mcs/errors/cs0082-4.cs
   trunk/mcs/errors/cs0082-5.cs
   trunk/mcs/errors/cs0082-6.cs
   trunk/mcs/errors/cs0082-7.cs
   trunk/mcs/errors/cs0082.cs
Removed:
   trunk/mcs/errors/cs0111-10.cs
   trunk/mcs/errors/cs0111-12.cs
   trunk/mcs/errors/cs0111-14.cs
   trunk/mcs/errors/cs0111-15.cs
   trunk/mcs/errors/cs0111-17.cs
   trunk/mcs/errors/cs0111-2.cs
   trunk/mcs/errors/cs0111-4.cs
Log:
Better error message.



Copied: trunk/mcs/errors/cs0082-2.cs (from rev 87440, 
trunk/mcs/errors/cs0111-12.cs)
===================================================================
--- trunk/mcs/errors/cs0111-12.cs       2007-10-13 14:33:29 UTC (rev 87440)
+++ trunk/mcs/errors/cs0082-2.cs        2007-10-15 16:30:17 UTC (rev 87521)
@@ -0,0 +1,10 @@
+// CS0082: A member `Test.get_Value()' is already reserved
+// Line: 6
+
+public class Test
+{
+       public string Value {
+               set { }
+       }
+       public string get_Value () { return null; }
+}

Copied: trunk/mcs/errors/cs0082-3.cs (from rev 87440, 
trunk/mcs/errors/cs0111-14.cs)
===================================================================
--- trunk/mcs/errors/cs0111-14.cs       2007-10-13 14:33:29 UTC (rev 87440)
+++ trunk/mcs/errors/cs0082-3.cs        2007-10-15 16:30:17 UTC (rev 87521)
@@ -0,0 +1,10 @@
+// CS0082: A member `Test.set_Item(int, string)' is already reserved
+// Line : 6
+
+public class Test
+{
+       public string this [int i] {
+               get { return ""; }
+       }
+       public void set_Item (int i, string s) { }
+}

Copied: trunk/mcs/errors/cs0082-4.cs (from rev 87440, 
trunk/mcs/errors/cs0111-15.cs)
===================================================================
--- trunk/mcs/errors/cs0111-15.cs       2007-10-13 14:33:29 UTC (rev 87440)
+++ trunk/mcs/errors/cs0082-4.cs        2007-10-15 16:30:17 UTC (rev 87521)
@@ -0,0 +1,8 @@
+// CS0082: A member `I.set_Item(int[], params int[])' is already reserved
+// Line : 7
+
+interface I
+{
+       void set_Item (int[] a, params int[] b);
+       int[] this [params int[] ii] { get; }
+}

Copied: trunk/mcs/errors/cs0082-5.cs (from rev 87440, 
trunk/mcs/errors/cs0111-17.cs)
===================================================================
--- trunk/mcs/errors/cs0111-17.cs       2007-10-13 14:33:29 UTC (rev 87440)
+++ trunk/mcs/errors/cs0082-5.cs        2007-10-15 16:30:17 UTC (rev 87521)
@@ -0,0 +1,14 @@
+// CS0082: A member `Test.get_Value()' is already reserved
+// Line: 7
+
+public partial class Test
+{
+       public string get_Value () { return null; }
+}
+
+public partial class Test
+{
+       public string Value {
+               get { }
+       }
+}

Copied: trunk/mcs/errors/cs0082-6.cs (from rev 87440, 
trunk/mcs/errors/cs0111-2.cs)
===================================================================
--- trunk/mcs/errors/cs0111-2.cs        2007-10-13 14:33:29 UTC (rev 87440)
+++ trunk/mcs/errors/cs0082-6.cs        2007-10-15 16:30:17 UTC (rev 87521)
@@ -0,0 +1,7 @@
+// CS0082: A member `ISample.set_Item(int, int)' is already reserved
+// Line: 6
+
+public interface ISample {
+        void set_Item (int a, int b);
+        int this[int i] { set; }
+}

Copied: trunk/mcs/errors/cs0082-7.cs (from rev 87440, 
trunk/mcs/errors/cs0111-4.cs)
===================================================================
--- trunk/mcs/errors/cs0111-4.cs        2007-10-13 14:33:29 UTC (rev 87440)
+++ trunk/mcs/errors/cs0082-7.cs        2007-10-15 16:30:17 UTC (rev 87521)
@@ -0,0 +1,16 @@
+// CS0082: A member `ErrorClass.get_Blah(int)' is already reserved
+// Line: 8
+
+using System.Runtime.CompilerServices;
+class ErrorClass {
+       [IndexerName ("Blah")]
+       public int this [int a] {
+            get { return 1; }
+       }
+        
+        public void get_Blah (int b) {}
+       
+        public static void Main ()
+        {
+        }
+}

Copied: trunk/mcs/errors/cs0082.cs (from rev 87440, 
trunk/mcs/errors/cs0111-10.cs)
===================================================================
--- trunk/mcs/errors/cs0111-10.cs       2007-10-13 14:33:29 UTC (rev 87440)
+++ trunk/mcs/errors/cs0082.cs  2007-10-15 16:30:17 UTC (rev 87521)
@@ -0,0 +1,10 @@
+// CS0082: A member `Test.get_Value()' is already reserved
+// Line: 7
+
+public class Test
+{
+       public string get_Value () { return null; }
+       public string Value {
+               get { }
+       }
+}

Deleted: trunk/mcs/errors/cs0111-10.cs
===================================================================
--- trunk/mcs/errors/cs0111-10.cs       2007-10-15 16:26:06 UTC (rev 87520)
+++ trunk/mcs/errors/cs0111-10.cs       2007-10-15 16:30:17 UTC (rev 87521)
@@ -1,10 +0,0 @@
-// cs0111-10.cs: `Test.get_Value()' is already defined. Rename this member or 
use different parameter types
-// Line: 7
-
-public class Test
-{
-       public string get_Value () { return null; }
-       public string Value {
-               get { }
-       }
-}

Deleted: trunk/mcs/errors/cs0111-12.cs
===================================================================
--- trunk/mcs/errors/cs0111-12.cs       2007-10-15 16:26:06 UTC (rev 87520)
+++ trunk/mcs/errors/cs0111-12.cs       2007-10-15 16:30:17 UTC (rev 87521)
@@ -1,10 +0,0 @@
-// cs0111-12.cs: `Test.get_Value()' is already defined. Rename this member or 
use different parameter types
-// Line : 6
-
-public class Test
-{
-       public string Value {
-               set { }
-       }
-       public string get_Value () { return null; }
-}

Deleted: trunk/mcs/errors/cs0111-14.cs
===================================================================
--- trunk/mcs/errors/cs0111-14.cs       2007-10-15 16:26:06 UTC (rev 87520)
+++ trunk/mcs/errors/cs0111-14.cs       2007-10-15 16:30:17 UTC (rev 87521)
@@ -1,10 +0,0 @@
-// cs0111-14.cs: `Test.set_Item(int, string)' is already defined. Rename this 
member or use different parameter types
-// Line : 6
-
-public class Test
-{
-       public string this [int i] {
-               get { return ""; }
-       }
-       public void set_Item (int i, string s) { }
-}

Deleted: trunk/mcs/errors/cs0111-15.cs
===================================================================
--- trunk/mcs/errors/cs0111-15.cs       2007-10-15 16:26:06 UTC (rev 87520)
+++ trunk/mcs/errors/cs0111-15.cs       2007-10-15 16:30:17 UTC (rev 87521)
@@ -1,8 +0,0 @@
-// cs0111-15.cs: `I.set_Item(int[], params int[])' is already defined. Rename 
this member or use different parameter types
-// Line : 7
-
-interface I
-{
-       void set_Item (int[] a, params int[] b);
-       int[] this [params int[] ii] { get; }
-}

Deleted: trunk/mcs/errors/cs0111-17.cs
===================================================================
--- trunk/mcs/errors/cs0111-17.cs       2007-10-15 16:26:06 UTC (rev 87520)
+++ trunk/mcs/errors/cs0111-17.cs       2007-10-15 16:30:17 UTC (rev 87521)
@@ -1,14 +0,0 @@
-// cs0111-17.cs: `Test.get_Value()' is already defined. Rename this member or 
use different parameter types
-// Line: 7
-
-public partial class Test
-{
-       public string get_Value () { return null; }
-}
-
-public partial class Test
-{
-       public string Value {
-               get { }
-       }
-}

Deleted: trunk/mcs/errors/cs0111-2.cs
===================================================================
--- trunk/mcs/errors/cs0111-2.cs        2007-10-15 16:26:06 UTC (rev 87520)
+++ trunk/mcs/errors/cs0111-2.cs        2007-10-15 16:30:17 UTC (rev 87521)
@@ -1,7 +0,0 @@
-// cs0111-2.cs: `ISample.set_Item(int, int)' is already defined. Rename this 
member or use different parameter types
-// Line: 6
-
-public interface ISample {
-        void set_Item (int a, int b);
-        int this[int i] { set; }
-}

Deleted: trunk/mcs/errors/cs0111-4.cs
===================================================================
--- trunk/mcs/errors/cs0111-4.cs        2007-10-15 16:26:06 UTC (rev 87520)
+++ trunk/mcs/errors/cs0111-4.cs        2007-10-15 16:30:17 UTC (rev 87521)
@@ -1,16 +0,0 @@
-// cs0111-4.cs: `ErrorClass.get_Blah(int)' is already defined. Rename this 
member or use different parameter types
-// Line: 8
-
-using System.Runtime.CompilerServices;
-class ErrorClass {
-       [IndexerName ("Blah")]
-       public int this [int a] {
-            get { return 1; }
-       }
-        
-        public void get_Blah (int b) {}
-       
-        public static void Main ()
-        {
-        }
-}

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

Reply via email to