projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git]
/
mcs
/
tests
/
gtest-variance-10.cs
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
}