2009-10-20 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-028.cs
blobf603b9bffc246ca32c22ef67d2202a77b7046eb6
1 class Stack<T>
3 T t;
5 public Stack (T t)
7 this.t = t;
10 public object Test ()
12 // Boxing the type parameter `T' to an object.
13 return t;
17 class X
19 public static object Test (Stack<int> stack)
21 return stack.Test ();
24 static void Main ()
26 Stack<int> stack = new Stack<int> (9);
27 System.Console.WriteLine (Test (stack));