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:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2009-08-25 18:31:10 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2009-08-25 18:31:10 +0400
commitb34504aa4db5d4f05d8bee91967d0670ba1e4dfb (patch)
treea392021532117edc386980e092f4622a89edc00c /mcs/errors
parent5ec4754b9d6c97fce73fa885c2ae35038e9c8ed0 (diff)
new test case
svn path=/trunk/mcs/; revision=140625
Diffstat (limited to 'mcs/errors')
-rw-r--r--mcs/errors/gcs0202.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/errors/gcs0202.cs b/mcs/errors/gcs0202.cs
new file mode 100644
index 00000000000..bdd9a9e5d34
--- /dev/null
+++ b/mcs/errors/gcs0202.cs
@@ -0,0 +1,18 @@
+// CS0202: foreach statement requires that the return type `System.Collections.Generic.IEnumerable<string>' of `Test.GetEnumerator()' must have a suitable public MoveNext method and public Current property
+// Line: 10
+using System;
+using System.Collections.Generic;
+
+class Test {
+ static void Main ()
+ {
+ Test obj = new Test ();
+ foreach (string s in obj) {
+ }
+ }
+
+ public IEnumerable<string> GetEnumerator ()
+ {
+ return null;
+ }
+}