projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* expression.cs (Invocation.IsApplicable): Reorganize slightly to
[mono.git]
/
mcs
/
tests
/
gtest-124.cs
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
}