15 lines
235 B
C#
Raw Normal View History

// CS0214: Pointers and fixed size buffers may only be used in an unsafe context
// Line: 12
// Compiler options: -unsafe
using System;
class X {
public unsafe int* this [int i] { set { } }
void Foo ()
{
this [0] = null;
}
}