projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #4840 from kumpera/unaligned-access
[mono.git]
/
mcs
/
tests
/
gtest-linq-16.cs
1
using System;
2
using System.Linq;
3
using System.Collections.Generic;
4
5
class C
6
{
7
public static void Main ()
8
{
9
Test_1 (5);
10
Test_2 ();
11
}
12
13
static void Test_1 (int x)
14
{
15
Func<IEnumerable<int>> v = () =>
16
from a in new int[] { 5, 10 }
17
let b = a
18
select b + x;
19
}
20
21
static void Test_2 ()
22
{
23
Func<int, Func<IEnumerable<int>>> vv = (x) =>
24
() =>
25
from a in new int[] { 5, 10 }
26
let b = a
27
select b + x;
28
}
29
}