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
[wasm] Fix WASM CI script. (#6741)
[mono-project.git]
/
mcs
/
errors
/
cs8175.cs
blob
4ef39db696d56ee4ea5ddc30b3649aca9f20e449
1
// CS8175: Cannot use by-reference variable `v' inside an anonymous method, lambda expression, or query expression
2
// Line: 14
3
4
using
System
;
5
6
public class
Test
7
{
8
public static void
Main
()
9
{
10
var
arr
=
new int
[
1
];
11
ref var
v
=
ref
arr
[
0
];
12
13
Action a
=
delegate
{
14
ref var
v2
=
ref
v
;
15
};
16
}
17
}