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-07-17 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
tests
/
gtest-027.cs
blob
4fdf4fd24c123350d196d29d67b279f04ebff61d
1
// A generic type declaration may have a non-generic base type.
2
3
class
TheBase
4
{
5
public void
BaseFunc
()
6
{ }
7
}
8
9
class
Stack
<
S
> :
TheBase
10
{
11
public void
Hello
(
S s
)
12
{ }
13
}
14
15
class
Test
<
T
> :
Stack
<
T
>
16
{
17
public void
Foo
(
T t
)
18
{ }
19
}
20
21
class
X
22
{
23
Test
<
int
>
test
;
24
25
void
Test
()
26
{
27
test
.
Foo
(
4
);
28
test
.
Hello
(
3
);
29
test
.
BaseFunc
();
30
}
31
32
static void
Main
()
33
{ }
34
}