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
2007-05-25 Jonathan Chambers <joncham@gmail.com>
[mcs.git]
/
tests
/
gtest-060.cs
blob
446d87b3eb58fdaee066c82140dfd73a84e7cd88
1
using
System
;
2
3
interface
IFoo
4
{
5
MyList
<
U
>
Map
<
U
> ();
6
}
7
8
class
MyList
<
T
>
9
{
10
public void
Hello
(
T t
)
11
{
12
Console
.
WriteLine
(
t
);
13
}
14
}
15
16
class
Foo
:
IFoo
17
{
18
public
MyList
<
T
>
Map
<
T
> ()
19
{
20
return new
MyList
<
T
> ();
21
}
22
}
23
24
class
X
25
{
26
static void
Main
()
27
{
28
Foo foo
=
new
Foo
();
29
MyList
<
int
>
list
=
foo
.
Map
<
int
> ();
30
list
.
Hello
(
9
);
31
}
32
}