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
Take stars out of types where they make more sense.
[mono-project.git]
/
mcs
/
tests
/
gtest-variance-15.cs
blob
7a357ff387fcc6992d95b59bf230e9e04cd09639
1
using
System
;
2
3
public class
C
4
{
5
delegate void
D
<
in
T
> (
T t
);
6
7
static void
M
<
T
> (
ref
T t
,
D
<
T
>
a
)
8
{
9
a
(
t
);
10
}
11
12
static void
M2
<
T
> (
T t
,
D
<
T
>
a
)
13
{
14
a
(
t
);
15
}
16
17
static void
MethodArg
(
object
o
)
18
{
19
}
20
21
public static int
Main
()
22
{
23
D
<
object
>
action
=
l
=>
Console
.
WriteLine
(
l
);
24
string
s
=
"value"
;
25
26
M
(
ref
s
,
action
);
27
M2
(
s
,
action
);
28
return
0
;
29
}
30
}