Author: marek
Date: 2007-02-17 11:34:16 -0500 (Sat, 17 Feb 2007)
New Revision: 73058
Added:
trunk/mcs/tests/test-563.cs
Log:
Test based on bug #80408
Added: trunk/mcs/tests/test-563.cs
===================================================================
--- trunk/mcs/tests/test-563.cs 2007-02-17 16:31:31 UTC (rev 73057)
+++ trunk/mcs/tests/test-563.cs 2007-02-17 16:34:16 UTC (rev 73058)
@@ -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
Property changes on: trunk/mcs/tests/test-563.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches