Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=81324 --- shadow/81324 2007-04-06 09:23:05.000000000 -0400 +++ shadow/81324.tmp.11507 2007-04-06 15:53:02.000000000 -0400 @@ -29,6 +29,40 @@ b) extension methods in the same file with the same signature are found I compiled with: gmcs -langversion:linq Bla.cs I've tested this against the current svn version (6-4-2007) + +------- Additional Comments From [EMAIL PROTECTED] 2007-04-06 15:53 ------- +using System; +using System.Linq; +using System.Collections.Generic; + +public class Bla { + public static void Main() { + List<int> first = new List<int>(new int[] { 0, 1, 2, 3, 4, 5, 6, 7, +8, 9 }); + List<int> second = new List<int>(new int[] { 4, 5, 6, + 10 }); + + //following line gives an error: + //Bla.cs(10,37): error CS0117: `System.Collections.Generic.List<int>' +does not contain a definition for `Except' + IEnumerable<int> q = first.Except(second); + //following line works: + //IEnumerable<int> q = Enumerable.Except<int>(first,second); + + foreach (int num in q) + Console.WriteLine(num); + } +} +/* +//works with following class uncommented + +public static class Foo { + public static IEnumerable<T> Except<T>(this IEnumerable<T> a, +IEnumerable<T> b){ + yield break; + } +} +*/ _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
