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
bring Mono Security to monotouch
[mcs.git]
/
tests
/
gtest-173.cs
blob
0fdf185734f90793abbf7c4ed1027f36315010a8
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
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
}