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-variance-12.cs
blob
bf5a32f2e910b990067376c4884db21ddca86d77
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
}