Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-linq-15.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4
5 namespace NameCollisionTest
6 {
7         class Data
8         {
9                 public int Value;
10         }
11
12         static class Ex
13         {
14                 public static IEnumerable<TR> Foo<T, TR> (this IEnumerable<T> t, Func<T, TR> f)
15                 {
16                         yield return f (t.First ());
17                 }
18         }
19
20         public class C
21         {
22                 public static void Main ()
23                 {
24                         Data [] i = new Data [0];
25                         var prods = from pe in i.Foo (pe => pe.Value) where pe > 0 select pe;
26                 }
27         }
28 }