New tests.
authorMarek Safar <marek.safar@gmail.com>
Fri, 15 Sep 2006 21:44:22 +0000 (21:44 -0000)
committerMarek Safar <marek.safar@gmail.com>
Fri, 15 Sep 2006 21:44:22 +0000 (21:44 -0000)
svn path=/trunk/mcs/; revision=65495

mcs/errors/cs0023-2.cs
mcs/errors/cs0023-3.cs
mcs/errors/cs0023-4.cs
mcs/errors/cs0023-5.cs [new file with mode: 0644]
mcs/errors/cs0023-6.cs [new file with mode: 0644]
mcs/errors/cs0023-7.cs [new file with mode: 0644]
mcs/errors/cs0023.cs

index 0185af9eb27ae16ac3279d904b85be6bab6a9e17..2e57935cb8bd0334a6393257a2d2337c2b04b3b0 100644 (file)
@@ -1,4 +1,4 @@
-// cs0023-2.cs: Operator `+' cannot be applied to operand of type `bool'
+// cs0023-2.cs: The `+' operator cannot be applied to operand of type `bool'
 // Line : 6
 
 class X {
index 5ce866d779c02c9e9fe13a6f084762acca7d56f8..800029d30ca241217273aa302e94e8ca4b673175 100644 (file)
@@ -1,4 +1,4 @@
-// cs0023-3.cs: The `.' operator can not be applied to operands of type 'void'
+// CS0023: The `.' operator cannot be applied to operand of type `void'
 // Line: 12
 
 using System; 
index f1575b44f5016901473d3fbe06bfb8869e6da22b..788ea5bbdc5be9e0643c1d405e98d6b17c0caece 100644 (file)
@@ -1,4 +1,4 @@
-// cs0023-4.cs: The `.' operator can not be applied to anonymous methods
+// CS0023: The `.' operator cannot be applied to operand of type `anonymous method'
 // Line: 8
 
 using System;
diff --git a/mcs/errors/cs0023-5.cs b/mcs/errors/cs0023-5.cs
new file mode 100644 (file)
index 0000000..b513b48
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0023: The `.' operator cannot be applied to operand of type `null'\r
+// Line: 8\r
+\r
+class C\r
+{\r
+       public static void Main ()\r
+       {\r
+               string s = null.ToString ();\r
+       }\r
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0023-6.cs b/mcs/errors/cs0023-6.cs
new file mode 100644 (file)
index 0000000..30556f2
--- /dev/null
@@ -0,0 +1,10 @@
+// CS0023: The `.' operator cannot be applied to operand of type `void'\r
+// Line: 8\r
+\r
+class C\r
+{\r
+       public static void Main ()\r
+       {\r
+               string s = void.ToString ();\r
+       }\r
+}
\ No newline at end of file
diff --git a/mcs/errors/cs0023-7.cs b/mcs/errors/cs0023-7.cs
new file mode 100644 (file)
index 0000000..3135281
--- /dev/null
@@ -0,0 +1,18 @@
+// CS0023: The `.' operator cannot be applied to operand of type `int*'\r
+// Line: 8\r
+// Compiler options: -unsafe\r
+\r
+class C\r
+{\r
+       static unsafe int* Foo ()\r
+       {\r
+               return (int*)0;\r
+       }\r
+       \r
+       public static void Main ()\r
+       {\r
+               unsafe {\r
+                       string s = Foo().ToString ();\r
+               }\r
+       }\r
+}
\ No newline at end of file
index 8df792e534b945334e2a1d0cc1ff727955d296be..166813a45da25a9ec880d7c39f8ec520915b3a19 100644 (file)
@@ -1,4 +1,4 @@
-// cs0023.cs: Operator `~' cannot be applied to operand of type `Foo'
+// CS0023: The `~' operator cannot be applied to operand of type `Foo'
 // Line : 10
 
 public class Foo {