projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2004-06-09 Umadevi S <sumadevi@novell.com>
[mono.git]
/
mcs
/
tests
/
gen-28.cs
1
class Stack<T>
2
{
3
T t;
4
5
public Stack (T t)
6
{
7
this.t = t;
8
}
9
10
public object Test ()
11
{
12
// Boxing the type parameter `T' to an object.
13
return t;
14
}
15
}
16
17
class X
18
{
19
public static object Test (Stack<int> stack)
20
{
21
return stack.Test ();
22
}
23
24
static void Main ()
25
{
26
Stack<int> stack = new Stack<int> (9);
27
System.Console.WriteLine (Test (stack));
28
}
29
}