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
[configure] Add new target.
[mono-project.git]
/
mcs
/
tests
/
gtest-173.cs
blob
ebae0d8f1a7fd1584492817dfe9458940551d1d5
1
class
List
<
t
> {
2
public void
foo
<
b
> (
List
<
t
>
x
) {
3
System
.
Console
.
WriteLine
(
"
{0}
-
{1}
"
,
typeof
(
t
),
x
.
GetType
());
4
}
5
}
6
7
class
C
{}
8
class
D
{}
9
10
11
class
M
{
12
public static void
Main
() {
13
List
<
D
>
x
=
new
List
<
D
> ();
14
x
.
foo
<
C
> (
x
);
15
List
<
string
>
y
=
new
List
<
string
> ();
16
y
.
foo
<
C
> (
y
);
17
}
18
}