repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2008-09-29 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
gcs0821.cs
blob
ba4c381492510a22016637cd4a4d204728f144d8
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