projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[amd64] Save missing register
[mono.git]
/
mcs
/
errors
/
cs0821.cs
1
// CS0821: A fixed statement cannot use an implicitly typed local variable
2
// Line: 9
3
// Compiler options: -unsafe
4
5
public class Point
6
{
7
public int X;
8
public int Y;
9
}
10
11
public class Test
12
{
13
unsafe static void Main ()
14
{
15
Point p = new Point ();
16
p.X = 42;
17
p.Y = 16;
18
19
fixed (var x = &p.X)
20
{
21
}
22
}
23
}
24