GenericParameter.cs: override Module properly
[mcs.git] / tests / gtest-etree-09.cs
blobc6b327a917d0fc1678556d43f86651cf632216f0
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Linq.Expressions;
6 namespace Mono
8 class C
10 public static int Main ()
12 int[] i2 = new int [] { 10, 14 };
14 Expression<Func<IEnumerable<int>>> e = () => from i in i2 select i;
15 int sum = e.Compile () ().Sum ();
16 if (sum != 24)
17 return 1;
19 Expression<Func<IEnumerable<long>>> e2 = () => from i in GetValues () select i;
20 var s2 = e2.Compile () ().Sum ();
21 if (s2 != 14)
22 return 2;
24 return 0;
27 static long[] GetValues ()
29 return new long [] { 9, 2, 3 };