Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-600.cs
1 class A { }
2 class B { }
3
4 interface ICharlie<T> { }
5
6 class Delta : ICharlie<A>, ICharlie<B>
7 {
8         static void Test<U> (ICharlie<U> icu, U u)
9         {
10         }
11
12         public void World<U> (U u, IFoo<U> foo)
13         {
14         }
15
16         public void Test (Foo foo)
17         {
18                 World ("Canada", foo);
19         }
20
21         static void Main ()
22         {
23                 Test (new Delta (), new A ());
24                 Test (new Delta (), new B ());
25         }
26 }
27
28 public interface IFoo<T>
29 {
30 }
31
32 public class Foo : IFoo<int>, IFoo<string>
33 {
34 }