repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-07-20 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs1621.cs
blob
a1d34ea2fb2a918139f0c03778250ee901586b77
1
// cs01621.cs: The yield statement cannot be used inside anonymous method blocks
2
// Line: 13
3
4
using
System
.
Collections
;
5
6
delegate object
D
();
7
8
class
C
:
IEnumerable
9
{
10
public
IEnumerator
GetEnumerator
()
11
{
12
D d
=
delegate
{
13
yield return this
;
14
};
15
}
16
}