Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-030.cs
1 // Note how the order of type parameters is different
2 // in the base class.
3
4 class Foo<T>
5 {
6         public Foo ()
7         { }
8
9         public void Hello (T t)
10         { }
11 }
12
13 class Bar<T,U> : Foo<U>
14 {
15         public Bar ()
16         { }
17
18         public void Test (T t, U u)
19         { }
20 }
21
22 class X
23 {
24         static void Test (Bar<int,string> bar)
25         {
26                 bar.Hello ("Test");
27                 bar.Test (7, "Hello");
28         }
29
30         public static void Main ()
31         {
32                 Bar<int,string> bar = new Bar<int,string> ();
33                 Test (bar);
34         }
35 }