2009-07-16 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-012.cs
blob4ef97c77356942ebfe17f722ebe14a3849dadff5
1 // A generic type definition may have another generic type
2 // definition as its parent.
4 class Stack<S>
6 public void Hello (S s)
7 { }
10 class Test<T> : Stack<T>
12 public void Foo (T t)
13 { }
16 class X
18 Test<int> test;
20 void Test ()
22 test.Foo (4);
23 test.Hello (3);
26 static void Main ()
27 { }