projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
158afd80398cb5fa0750ca39fd89db4f588180a3
[mono.git]
/
mcs
/
errors
/
cs1686-3.cs
1
// CS1686: Local variable or parameter `i' cannot have their address taken and be used inside an anonymous method or lambda expression
\r
2
// Line: 18
\r
3
// Compiler options: -unsafe
\r
4
\r
5
unsafe struct S
\r
6
{
\r
7
public int i;
\r
8
}
\r
9
\r
10
class C
\r
11
{
\r
12
unsafe delegate int* D ();
\r
13
\r
14
static void Main ()
\r
15
{
\r
16
unsafe {
\r
17
S str = new S ();
\r
18
D d = delegate { return &str.i; };
\r
19
}
\r
20
}
\r
21
}
\r