2010-05-27 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / errors / gcs1640.cs
1 // CS1640: foreach statement cannot operate on variables of type `T' because it contains multiple implementation of `System.Collections.Generic.IEnumerable<T>.GetEnumerator()'. Try casting to a specific implementation\r
2 // Line: 11\r
3 \r
4 using System.Collections.Generic;\r
5 \r
6 public class C\r
7 {\r
8         public static void Test<T>(T t) \r
9                 where T: IEnumerable<string>, IEnumerable<int>\r
10         {\r
11                 foreach (int i in t)\r
12                 {\r
13                 }\r
14         }\r
15 }\r