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
* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
[mcs.git]
/
tests
/
gtest-071.cs
blob
b0a7857de69c3dc3a9bd339b6db9a5f861b7c9f6
1
using
System
;
2
3
class
Foo
<
T
>
4
{
5
public
T Test
<
U
> (
U u
)
6
where U
:
T
7
{
8
return
u
;
9
}
10
}
11
12
class
X
13
{
14
static void
Main
()
15
{
16
Foo
<
X
>
foo
=
new
Foo
<
X
> ();
17
18
Y y
=
new
Y
();
19
X x
=
foo
.
Test
<
Y
> (
y
);
20
}
21
}
22
23
class
Y
:
X
24
{
25
}