repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #1861 from saper/home-override
[mono-project.git]
/
mcs
/
tests
/
test-anon-156.cs
blob
11d22661add08226e111f61b6bc4ec11668f7666
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
public static int
Main
()
18
{
19
cf
<
int
> ();
20
df
();
21
return
0
;
22
}
23
}