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
/
gtest-anon-2.cs
blob
bf6bbb317d2533d84fe60b4aaab0fb8e60f2c561
1
using
System
;
2
3
public delegate void
Simple
();
4
5
public delegate
Simple
Foo
();
6
7
class
X
8
{
9
public void
Hello
<
U
> (
U u
)
10
{ }
11
12
public void
Test
<
T
> (
T t
)
13
{
14
T u
=
t
;
15
Hello
(
u
);
16
Foo foo
=
delegate
{
17
T v
=
u
;
18
Hello
(
u
);
19
return delegate
{
20
Hello
(
u
);
21
Hello
(
v
);
22
};
23
};
24
Simple simple
=
foo
();
25
simple
();
26
Hello
(
u
);
27
}
28
29
static void
Main
()
30
{
31
X x
=
new
X
();
32
x
.
Test
(
3
);
33
}
34
}