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
add comment
[mcs.git]
/
tests
/
gtest-anon-56.cs
blob
9887afbc96bf8765a5e251c50058e753c9ab4a04
1
class
G
<
T
>
2
{
3
public
T
def
()
{ return default (T); }
4
}
5
6
class
C
7
{
8
delegate void
DF
();
9
static
DF df
;
10
static void
foo
(
object
o
)
{ }
11
static void
cf
<
T
> ()
12
{
13
G
<
T
>
g
=
new
G
<
T
> ();
14
df
=
delegate
{ foo (g.def ()); }
;
15
}
16
17
static int
Main
()
18
{
19
cf
<
int
> ();
20
df
();
21
return
0
;
22
}
23
}