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
Update the reference assemblies we ship in mono.
[mono-project.git]
/
mcs
/
errors
/
cs0154-4.cs
blob
1df9c631106b782ca76149c700bfbc1eb3e716bd
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