projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5714 from alexischr/update_bockbuild
[mono.git]
/
mcs
/
tests
/
test-anon-170.cs
1
using System;
2
3
public class MyClass
4
{
5
Func<int> ll;
6
7
int Test (int a)
8
{
9
return 1;
10
}
11
12
public void Run ()
13
{
14
Action<int> a = l => {
15
ll = () => l;
16
};
17
18
a (1);
19
20
Action<int> a2 = l => {
21
ll = () => l;
22
};
23
24
a2 (2);
25
}
26
27
public void Run2 ()
28
{
29
Action<int> a = l => {
30
ll = () => Test (l);
31
};
32
33
a (1);
34
35
Action<int> a2 = l => {
36
ll = () => Test (l);
37
};
38
39
a2 (1);
40
}
41
42
public static void Main ()
43
{
44
var mc = new MyClass ();
45
mc.Run ();
46
mc.Run2 ();
47
}
48
}