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
In ilasm/tests:
[mcs.git]
/
tests
/
gtest-012.cs
blob
4ef97c77356942ebfe17f722ebe14a3849dadff5
1
// A generic type definition may have another generic type
2
// definition as its parent.
3
4
class
Stack
<
S
>
5
{
6
public void
Hello
(
S s
)
7
{ }
8
}
9
10
class
Test
<
T
> :
Stack
<
T
>
11
{
12
public void
Foo
(
T t
)
13
{ }
14
}
15
16
class
X
17
{
18
Test
<
int
>
test
;
19
20
void
Test
()
21
{
22
test
.
Foo
(
4
);
23
test
.
Hello
(
3
);
24
}
25
26
static void
Main
()
27
{ }
28
}