2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-030.cs
blob29f1082bc67744175c72dff3f24ce03144a12cd2
1 // Note how the order of type parameters is different
2 // in the base class.
4 class Foo<T>
6 public Foo ()
7 { }
9 public void Hello (T t)
10 { }
13 class Bar<T,U> : Foo<U>
15 public Bar ()
16 { }
18 public void Test (T t, U u)
19 { }
22 class X
24 static void Test (Bar<int,string> bar)
26 bar.Hello ("Test");
27 bar.Test (7, "Hello");
30 static void Main ()
32 Bar<int,string> bar = new Bar<int,string> ();
33 Test (bar);