projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2007-10-17 Jonathan Pobst <monkey@jpobst.com>
[mono.git]
/
mcs
/
tests
/
gtest-029.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
}