Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2008-12-12 13:10:56 +0300
committerMarek Safar <marek.safar@gmail.com>2008-12-12 13:10:56 +0300
commit97b571aeb0439c965396351ad4be69f920d010e3 (patch)
treec883a8dd22926ccdca2ae7b9fabe0c2f71f10db9 /mcs/tests/gtest-linq-16.cs
parent0ee2a642c94e1ed719f8c44efff60eac11f247c1 (diff)
New tests.
svn path=/trunk/mcs/; revision=121410
Diffstat (limited to 'mcs/tests/gtest-linq-16.cs')
-rw-r--r--mcs/tests/gtest-linq-16.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/mcs/tests/gtest-linq-16.cs b/mcs/tests/gtest-linq-16.cs
new file mode 100644
index 00000000000..162d8fa124b
--- /dev/null
+++ b/mcs/tests/gtest-linq-16.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Linq;
+using System.Collections.Generic;
+
+class C
+{
+ public static void Main ()
+ {
+ Test_1 (5);
+ Test_2 ();
+ }
+
+ static void Test_1 (int x)
+ {
+ Func<IEnumerable<int>> v = () =>
+ from a in new int[] { 5, 10 }
+ let b = a
+ select b + x;
+ }
+
+ static void Test_2 ()
+ {
+ Func<int, Func<IEnumerable<int>>> vv = (x) =>
+ () =>
+ from a in new int[] { 5, 10 }
+ let b = a
+ select b + x;
+ }
+} \ No newline at end of file