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
**** Merged from MCS ****
[mono-project.git]
/
mcs
/
errors
/
cs8206.cs
blob
0992eb88f43c566e6e3d76badb7c28a4c33061c4
1
// cs8206.cs: Return not allowed in iterator method
2
// Line: 11
3
using
System
.
Collections
;
4
5
class
X
{
6
IEnumerator
MyEnumerator
(
int
a
)
7
{
8
if
(
a
==
0
)
9
yield return
1
;
10
else
11
return
2
;
12
}
13
14
static void
Main
()
15
{
16
}
17
}