projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Reflect latest API changes.
[mono.git]
/
mcs
/
errors
/
cs0212.cs
1
// cs0212: You can only take the address of an unfixed expression inside
2
// a fixed statement initializer.
3
// Line: 19
4
// Compiler options: -unsafe
5
6
using System;
7
8
class X
9
{
10
public int x;
11
public X ()
12
{
13
this.x = 4;
14
}
15
16
public unsafe static void Main ()
17
{
18
X x = new X ();
19
int *p = &x.x;
20
}
21
}