2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / tests / gen-29.cs
1 class Stack<T>
2 {
3         T[] t;
4
5         public Stack (int n)
6         {
7                 t = new T [n];
8         }
9
10         public object Test ()
11         {
12                 // Boxing the type parameter to an object; note that we're
13                 // an array !
14                 return t;
15         }
16 }
17
18 class X
19 {
20         static void Main ()
21         {
22                 Stack<int> stack = new Stack<int> (5);
23                 System.Console.WriteLine (stack.Test ());
24         }
25 }