projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mini] Fix test compiling when running !MOBILE
[mono.git]
/
mcs
/
tests
/
gtest-variance-15.cs
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
}