repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-10-20 Jb Evain <jbevain@novell.com>
[mcs.git]
/
tests
/
gtest-028.cs
blob
f603b9bffc246ca32c22ef67d2202a77b7046eb6
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
}