repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-02-15 Jonathan Chambers <joncham@gmail.com>
[mcs.git]
/
tests
/
test-anon-75.cs
blob
105b4f45137aa5011811bdf53e64d1e96fd881b3
1
using
System
;
2
3
delegate bool
D
();
4
5
class
Data
6
{
7
public
D d
;
8
}
9
10
public class
Test
11
{
12
int value
;
13
D change
;
14
15
static void
Foo
(
int
i
,
D d
)
16
{
17
}
18
19
public static void
Main
()
20
{
21
}
22
23
void
TestMe
()
24
{
25
if
(
true
) {
26
Data data
=
null
;
27
if
(
data
!=
null
) {
28
D d2
=
delegate
{ return true; }
;
29
change
+=
d2
;
30
31
data
.
d
+=
delegate
{
32
change
-=
d2
;
33
Foo
(
10
,
delegate
{
34
data
=
null
;
35
return false
;
36
}
37
);
38
return true
;
39
};
40
}
41
}
42
}
43
}
44