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
2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
tests
/
gtest-189.cs
blob
05d0019a3f12d08a639731bcc44db711b25cdfdf
1
interface
IFoo
{}
2
class
Bar
:
IFoo
{}
3
4
class
Cont
<
T
> {
5
T f
;
6
public
Cont
(
T x
)
{ f = x; }
7
public override string
ToString
()
8
{
9
return
f
.
ToString
();
10
}
11
}
12
13
class
M
{
14
public static void
Main
()
15
{
16
Cont
<
IFoo
>
c
=
new
Cont
<
IFoo
> (
new
Bar
());
17
System
.
Console
.
WriteLine
(
c
);
18
}
19
}