projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mcs] Initial by ref returns and variables support
[mono.git]
/
mcs
/
errors
/
cs8175.cs
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
}