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
2010-01-31 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
errors
/
cs1686-4.cs
blob
2c22474b62b1946bce84b55c37838a3e8368afd2
1
// CS1686: Local variable or parameter `a' cannot have their address taken and be used inside an anonymous method or lambda expression
2
// Line: 11
3
// Compiler options: -unsafe
4
5
delegate void
D
();
6
7
unsafe class
X
{
8
public
D
T
(
int
a
)
9
{
10
return delegate
{
11
int
x
=
a
;
12
};
13
14
int
*
y
= &
a
;
15
}
16
}