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-11-17 Marek Safar <marek.safar@gmail.com>
[mcs.git]
/
errors
/
gcs1686.cs
blob
412007de9969ee978e5e67b53cbae0528e150163
1
// CS1686: Local variable or parameter `str' cannot have their address taken and be used inside an anonymous method or lambda expression
2
// Line: 11
3
// Compiler options: -unsafe
4
5
using
System
;
6
7
unsafe struct
S
8
{
9
public fixed int
i
[
10
];
10
}
11
12
class
C
13
{
14
static void
Main
()
15
{
16
unsafe
{
17
S str
;
18
Func
<
int
>
e
= () =>
str
.
i
[
3
];
19
}
20
}
21
}