projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' of http://github.com/mono/mono
[mono.git]
/
mcs
/
errors
/
cs0154-4.cs
1
// CS0154: The property or indexer `A.this[int]' cannot be used in this context because it lacks the `get' accessor
2
// Line: 18
3
4
public class A
5
{
6
public int this[int i] { set { } }
7
}
8
9
public class B : A
10
{
11
public int this[string i] { get { return 9; } }
12
}
13
14
class Test
15
{
16
public static void Main ()
17
{
18
int i = new B ()[1];
19
}
20
}
21