Author: marek
Date: 2006-11-02 17:50:25 -0500 (Thu, 02 Nov 2006)
New Revision: 67302
Added:
trunk/mcs/errors/gcs1640.cs
Log:
New test.
Added: trunk/mcs/errors/gcs1640.cs
===================================================================
--- trunk/mcs/errors/gcs1640.cs 2006-11-02 22:49:51 UTC (rev 67301)
+++ trunk/mcs/errors/gcs1640.cs 2006-11-02 22:50:25 UTC (rev 67302)
@@ -0,0 +1,15 @@
+// CS1640: foreach statement cannot operate on variables of type `T' because
it contains multiple implementation of
`System.Collections.Generic.IEnumerable<int>.GetEnumerator()'. Try casting to a
specific implementation
+// Line: 11
+
+using System.Collections.Generic;
+
+public class C
+{
+ public static void Test<T>(T t)
+ where T: IEnumerable<string>, IEnumerable<int>
+ {
+ foreach (int i in t)
+ {
+ }
+ }
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches