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
2009-02-27 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs1686.cs
blob
830d1d41a40f6ade8e2e3d4e000b479bbe2bcf65
1
// CS1686: Local variable or parameter `i' cannot have their address taken and be used inside an anonymous method or lambda expression
2
// Line: 16
3
// Compiler options: -unsafe
4
5
class
X
{
6
delegate void
S
();
7
8
unsafe void
M
()
9
{
10
int
i
;
11
int
*
j
;
12
13
S s
=
delegate
{
14
i
=
1
;
15
};
16
j
= &
i
;
17
}
18
19
static void
Main
() {}
20
}