[System] Add reflection dependency tracking
[mono-project.git] / mcs / tests / gtest-variance-10.cs
blob8c66d99528482b423d6eaaad79201ebc7c7baf84
1 using System;
3 public interface I<out T>
5 int Count{ get; }
8 class Foo {}
10 public class Test : I<string>, I<Foo>
12 int I<string>.Count
14 get { return 1; }
17 int I<Foo>.Count
19 get { return 2; }
23 public static class Program
25 public static int Main ()
27 var col = new Test();
29 var test = (I<object>)(object) col;
30 if (test.Count != 1)
31 return 1;
33 return 0;