Take stars out of types where they make more sense.
[mono-project.git] / mcs / tests / gtest-029.cs
blobd52eee7ffa13210a6ed5ce4f935226f1c16bc8c7
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 public static void Main ()
22 Stack<int> stack = new Stack<int> (5);
23 System.Console.WriteLine (stack.Test ());