blob: c3f91d7526aed6a31157c13048216b7ba7ecec40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// CS0254: The right hand side of a fixed statement assignment may not be a cast expression
// Line: 16
// Compiler options: -unsafe
class Box {
public int value;
}
unsafe struct Obsolete {
}
class MainClass {
unsafe public static void Main ()
{
Box b = new Box ();
fixed (long* p = (long*)&b.value)
{
}
}
}
|