repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git]
/
mcs
/
errors
/
cs1764.cs
blob
a1dd2e36d1591c8f4bd3fdcb8e8dad9daea66c9a
1
// CS1764: Cannot use fixed variable `p' inside an anonymous method, lambda expression or query expression
2
// Line: 10
3
// Compiler options: -unsafe
4
5
using
System
;
6
7
unsafe class
Test
8
{
9
static int
x
;
10
11
static void
Main
()
12
{
13
fixed
(
int
*
p
= &
x
) {
14
Action a
= () =>
{ var pp = p; }
;
15
}
16
}
17
}