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>2007-02-17 19:34:16 +0300
committerMarek Safar <marek.safar@gmail.com>2007-02-17 19:34:16 +0300
commit810bb583cdf396f29adf2096c49a95f604b1162a (patch)
tree596df7aafb93bec6e8646c07f1782e3ff1308d7e /mcs/tests/test-563.cs
parent37bd8eba347b1825b042da3ebeedbe40a46555f0 (diff)
Test based on bug #80408
svn path=/trunk/mcs/; revision=73058
Diffstat (limited to 'mcs/tests/test-563.cs')
-rw-r--r--mcs/tests/test-563.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/mcs/tests/test-563.cs b/mcs/tests/test-563.cs
new file mode 100644
index 00000000000..120e7247f9b
--- /dev/null
+++ b/mcs/tests/test-563.cs
@@ -0,0 +1,29 @@
+// Compiler options: -warn:4 -warnaserror
+
+using System;
+using System.Collections;
+
+public class Test
+{
+ public static object TestMethod (TestCollection t)
+ {
+ foreach (object x in t)
+ {
+ return x;
+ }
+ return null;
+ }
+
+ public static void Main ()
+ {
+ }
+}
+
+interface ITestCollection : IEnumerable
+{
+ new IEnumerator GetEnumerator ();
+}
+
+interface TestCollection : ITestCollection
+{
+} \ No newline at end of file