15 lines
235 B
C#
15 lines
235 B
C#
|
// 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;
|
||
|
}
|
||
|
}
|