bring Mono Security to monotouch
[mcs.git] / tests / gtest-029.cs
blob6194603a4fb9e673840e875b42a5ea91c771c900
1 class Stack<T>
3 T[] t;
5 public Stack (int n)
7 t = new T [n];
10 public object Test ()
12 // Boxing the type parameter to an object; note that we're
13 // an array !
14 return t;
18 class X
20 static void Main ()
22 Stack<int> stack = new Stack<int> (5);
23 System.Console.WriteLine (stack.Test ());