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
[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git]
/
mcs
/
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
}