New test.
[mono.git] / mcs / errors / cs0023-7.cs
1 // CS0023: The `.' operator cannot be applied to operand of type `int*'\r
2 // Line: 8\r
3 // Compiler options: -unsafe\r
4 \r
5 class C\r
6 {\r
7         static unsafe int* Foo ()\r
8         {\r
9                 return (int*)0;\r
10         }\r
11         \r
12         public static void Main ()\r
13         {\r
14                 unsafe {\r
15                         string s = Foo().ToString ();\r
16                 }\r
17         }\r
18 }