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
In ilasm/tests:
[mcs.git]
/
tests
/
gtest-124.cs
blob
b678b148ce22c8d703c98477a24478bef789a4d5
1
using
System
;
2
3
interface
IFoo
<
T
>
4
{
5
T
this
[
int
index
] {
6
get
;
set
;
7
}
8
}
9
10
public class
FooCollection
<
T
> :
IFoo
<
T
>
11
{
12
T IFoo
<
T
>.
this
[
int
index
] {
13
get
{
14
return default
(
T
);
15
}
16
set
{
17
}
18
}
19
}
20
21
class
X
22
{
23
static void
Main
()
24
{
25
IFoo
<
int
>
foo
=
new
FooCollection
<
int
> ();
26
int
a
=
foo
[
3
];
27
Console
.
WriteLine
(
a
);
28
}
29
}