projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2009-07-11 Michael Barker <mike@middlesoft.co.uk>
[mono.git]
/
mcs
/
tests
/
gtest-variance-12.cs
1
// Compiler options: -langversion:future
2
3
using System;
4
5
delegate void D<in T> ();
6
7
interface I<out T>
8
{
9
event D<T> field;
10
}
11
12
class D : I<string>
13
{
14
public event D<string> field;
15
16
public static int Main ()
17
{
18
D<object> dd = () => {};
19
20
D d = new D ();
21
d.field += dd;
22
d.field ();
23
24
return 0;
25
}
26
}