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
[corlib] Fix a few NSLogWriter issues. (#13799)
[mono-project.git]
/
mcs
/
tests
/
gtest-variance-10.cs
blob
8c66d99528482b423d6eaaad79201ebc7c7baf84
1
using
System
;
2
3
public interface
I
<
out
T
>
4
{
5
int
Count{ get; }
6
}
7
8
class
Foo
{}
9
10
public class
Test
:
I
<
string
>,
I
<
Foo
>
11
{
12
int
I
<
string
>.
Count
13
{
14
get
{ return 1; }
15
}
16
17
int
I
<
Foo
>.
Count
18
{
19
get
{ return 2; }
20
}
21
}
22
23
public static class
Program
24
{
25
public static int
Main
()
26
{
27
var
col
=
new
Test
();
28
29
var
test
= (
I
<
object
>)(
object
)
col
;
30
if
(
test
.
Count
!=
1
)
31
return
1
;
32
33
return
0
;
34
}
35
}