blob: 3c8db7735b0397d0f718d9b5008ccf7aa325fed0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// CS0828: An anonymous type property `Value' cannot be initialized with `int*'
// Line: 9
// Compiler options: -unsafe
public unsafe class Test
{
static int* Error ()
{
return (int*)0;
}
static void Main ()
{
var v = new { Value = Error () };
}
}
|