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
update readme (#21797)
[mono-project.git]
/
mcs
/
errors
/
cs8175-2.cs
blob
27c4babf8bfcfffb5c165d5ef7d014186b45717d
1
// CS8175: Cannot use by-reference variable `s' inside an anonymous method, lambda expression, or query expression
2
// Line: 17
3
// Compiler options: -langversion:latest
4
5
using
System
;
6
7
public ref struct
S
8
{
9
}
10
11
class
Test
12
{
13
public static void
Main
()
14
{
15
var
s
=
new
S
();
16
17
Action a
= () =>
Console
.
WriteLine
(
s
);
18
}
19
}