repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2007-03-19 Chris Toshok <toshok@ximian.com>
[mono-project.git]
/
mcs
/
tests
/
gtest-022.cs
blob
1a7df651723ceae8803eb425baa664deb2b5324a
1
// A non-generic type may have a closed constructed type as its parent
2
3
class
Foo
<
T
>
4
{
5
public void
Hello
()
6
{ }
7
8
public void
World
(
T t
)
9
{
10
Hello
();
11
}
12
}
13
14
class
Bar
:
Foo
<
int
>
15
{
16
public void
Test
()
17
{
18
Hello
();
19
World
(
4
);
20
}
21
}
22
23
class
X
24
{
25
static void
Main
()
26
{
27
Bar bar
=
new
Bar
();
28
bar
.
Test
();
29
}
30
}