a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
17 lines
261 B
C#
17 lines
261 B
C#
// 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 () };
|
|
}
|
|
}
|