Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0828-2.cs
1 // CS0828: An anonymous type property `Value' cannot be initialized with `int*'
2 // Line: 9
3 // Compiler options: -unsafe
4
5 public unsafe class Test
6 {
7         static int* Error ()
8         {
9                 return (int*)0;
10         }
11         
12         static void Main ()
13         {
14                 var v = new { Value = Error () };
15         }
16 }