From db6cf5d6632f01d59ecd8f693d851333f2f7219d Mon Sep 17 00:00:00 2001 From: gonzalo Date: Tue, 25 Aug 2009 14:31:10 +0000 Subject: [PATCH] new test case git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@140625 e3ebcda4-bce8-0310-ba0a-eca2169e7518 --- errors/gcs0202.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 errors/gcs0202.cs diff --git a/errors/gcs0202.cs b/errors/gcs0202.cs new file mode 100644 index 0000000000..bdd9a9e5d3 --- /dev/null +++ b/errors/gcs0202.cs @@ -0,0 +1,18 @@ +// CS0202: foreach statement requires that the return type `System.Collections.Generic.IEnumerable' 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 GetEnumerator () + { + return null; + } +} -- 2.11.4.GIT