Merge pull request #1870 from saper/langinfo_h
[mono.git] / mcs / errors / cs1940-2.cs
1 // CS1940: Ambiguous implementation of the query pattern `Select' for source type `string[]'
2 // Line: 11
3
4 using System;
5 using System.Collections.Generic;
6
7 class Multiple
8 {
9         public static void Main ()
10         {
11                 var q = from x in new [] { "a", "b", "c" } select x;
12         }
13 }
14
15 static class Y
16 {
17         public static IEnumerable<TResult> Select<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult> selector)
18         {
19                 return null;
20         }
21 }
22
23 static class X
24 {
25         public static IEnumerable<TResult> Select<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult> selector)
26         {
27                 return null;
28         }
29 }