Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2004-11-19 18:32:41 +0300
committerMarek Safar <marek.safar@gmail.com>2004-11-19 18:32:41 +0300
commit70ac5f6eefa4c37a7001a16112ac61fa729baced (patch)
tree0f75dcd4922b08b897e8d9a1e3aca124646fc8e3 /mcs/errors/cs0202.cs
parentdda0fa37366b468e36cd0914c64641c57380205d (diff)
new test
svn path=/trunk/mcs/; revision=36324
Diffstat (limited to 'mcs/errors/cs0202.cs')
-rw-r--r--mcs/errors/cs0202.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/errors/cs0202.cs b/mcs/errors/cs0202.cs
new file mode 100644
index 00000000000..3d43218af53
--- /dev/null
+++ b/mcs/errors/cs0202.cs
@@ -0,0 +1,23 @@
+// cs0202.cs: foreach requires that the return type 'Foo.E[]' of 'Foo.P.GetEnumerator()' must have a suitable public MoveNext method and public Current property
+// Line: 18
+
+public class Foo
+{
+ public class E {}
+
+ public class P
+ {
+ public E[] GetEnumerator ()
+ {
+ return null;
+ }
+ }
+
+ public static void Main ()
+ {
+ P o = new P ();
+ foreach (P p in o)
+ {
+ }
+ }
+}