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
/
test-208.cs
blob
ced1e9d789bdfe9891c2472d9216d0238e0f5779
1
using
System
;
2
3
interface
A
4
{
5
string this
[
string
s
]
{ get; }
6
}
7
8
interface
B
:
A
9
{
10
void
Test
();
11
}
12
13
class
X
:
B
14
{
15
public string this
[
string
s
] {
16
get
{
17
return
s
;
18
}
19
}
20
21
public void
Test
()
22
{ }
23
}
24
25
public class
Y
26
{
27
public static void
Main
()
28
{
29
B b
=
new
X
();
30
31
string
s
=
b
[
"test"
];
32
}
33
}
34