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
for "build" config, import corlib common sources at unix instead (#11989)
[mono-project.git]
/
mcs
/
errors
/
cs1621-2.cs
blob
fca7c673b3cbb96cdb5f9f3f09e7161298b6e283
1
// CS1621: The yield statement cannot be used inside anonymous method blocks
2
// Line: 12
3
4
using
System
;
5
using
System
.
Collections
;
6
7
public class
Test
8
{
9
public
IEnumerator
Foo
()
10
{
11
Call
(() => {
12
yield break
;
13
});
14
15
yield break
;
16
}
17
18
void
Call
(
Action a
)
19
{
20
}
21
}