resync
[mcs.git] / errors / gcs1640.cs
blobab76dd871aabe8ca4fdcddd43dc0c0a45791017d
1 // 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
2 // Line: 11
4 using System.Collections.Generic;
6 public class C
8 public static void Test<T>(T t)
9 where T: IEnumerable<string>, IEnumerable<int>
11 foreach (int i in t)