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
2008-09-29 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs0202.cs
blob
24c3b262a05e5c98c243f4a580b581c45ef67550
1
// cs0202.cs: foreach statement requires that the return type `Foo.E[]' of `Foo.P.GetEnumerator()' must have a suitable public MoveNext method and public Current property
2
// Line: 18
3
4
public class
Foo
5
{
6
public class
E
{}
7
8
public class
P
9
{
10
public
E
[]
GetEnumerator
()
11
{
12
return null
;
13
}
14
}
15
16
public static void
Main
()
17
{
18
P o
=
new
P
();
19
foreach
(
P p
in
o
)
20
{
21
}
22
}
23
}