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
2007-05-25 Jonathan Chambers <joncham@gmail.com>
[mcs.git]
/
tests
/
test-541.cs
blob
60f0ca137811cd564d92073a84e22eb2e485abf2
1
delegate void
TestFunc
(
int
val
);
2
3
class
A
4
{
5
public
A
(
TestFunc func
)
6
{
7
func
(
0
);
8
}
9
}
10
11
class
TestClass
12
{
13
static int
i
=
1
;
14
static readonly
A a
=
new
A
(
delegate
(
int
a
)
{ i = a; }
);
15
16
static int
Main
()
17
{
18
return
i
;
19
}
20
}