-// 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 {
-// 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;
-// 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;
--- /dev/null
+// 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
--- /dev/null
+// 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
--- /dev/null
+// 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
-// 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 {