Update & new tests.
authorMarek Safar <marek.safar@gmail.com>
Fri, 27 Oct 2006 21:03:46 +0000 (21:03 -0000)
committerMarek Safar <marek.safar@gmail.com>
Fri, 27 Oct 2006 21:03:46 +0000 (21:03 -0000)
svn path=/trunk/mcs/; revision=67048

mcs/errors/cs0031-7.cs [new file with mode: 0644]
mcs/errors/cs0122-22.cs [new file with mode: 0644]
mcs/errors/cs0131-2.cs
mcs/errors/cs0131-3.cs
mcs/errors/cs0131-4.cs [new file with mode: 0644]
mcs/errors/cs0131.cs

diff --git a/mcs/errors/cs0031-7.cs b/mcs/errors/cs0031-7.cs
new file mode 100644 (file)
index 0000000..310ac45
--- /dev/null
@@ -0,0 +1,6 @@
+// CS0031: Constant value `42' cannot be converted to a `string'\r
+// Line: 5\r
+\r
+class A {\r
+  public static implicit operator string (A a) { return 42; }\r
+}\r
diff --git a/mcs/errors/cs0122-22.cs b/mcs/errors/cs0122-22.cs
new file mode 100644 (file)
index 0000000..252fc01
--- /dev/null
@@ -0,0 +1,23 @@
+// CS0122: `Test.A.B' is inaccessible due to its protection level\r
+// Line: 6\r
+\r
+namespace Test\r
+{\r
+       public sealed class A\r
+       {\r
+               private class B\r
+               {\r
+                       public static void Method ()\r
+                       {\r
+                       }\r
+               }\r
+       }\r
+       \r
+       class MainClass\r
+       {\r
+               public static void Main(string[] args)\r
+               {\r
+                       A.B.Method ();\r
+               }\r
+       }\r
+}\r
index 616bfbb5c5beac4218d51c82c0c9f20fe1e09284..67ebaaaf13d471470dd4229a5d98a03594b992b4 100644 (file)
@@ -1,4 +1,4 @@
-// cs0131-2.cs: The left-hand side of an assignment or mutating operation must be a variable, property or indexer
+// CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
 // Line: 10
 using System;
 
index b6c6a0be31d3bc9a1ac4df7382b22a33c83d2f8a..23dbfe1146e1aa84d2be2b68aa791539e6e04414 100644 (file)
@@ -1,4 +1,4 @@
-// cs0131-3.cs: The left-hand side of an assignment or mutating operation must be a variable, property or indexer
+// CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
 // Line: 12
 
 using System;
diff --git a/mcs/errors/cs0131-4.cs b/mcs/errors/cs0131-4.cs
new file mode 100644 (file)
index 0000000..a1e21bf
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0131: The left-hand side of an assignment must be a variable, a property or an indexer\r
+// Line: 8\r
+\r
+using System;\r
+\r
+public class Test {\r
+       void Main () {\r
+               Console.WriteLine (++0);\r
+       }\r
+}
\ No newline at end of file
index 881117a05f998140e460e7586b13786fe84acf2f..ab41e853ef84a75ecec0e3d8447cc6c2e98a2099 100644 (file)
@@ -1,5 +1,6 @@
-// cs0131.cs: The left-hand side of an assignment or mutating operation must be a variable, property or indexer
-// Line:
+// CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
+// Line: 7
+
 class X {
        void A ()
        {