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
2010-01-31 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
errors
/
cs0668-2.cs
blob
8604afdd1b269f38d855c02ffb13a06cf0a52bc9
1
// cs0668-2.cs: Two indexers have different names; the IndexerName attribute must be used with the same name on every indexer within a type
2
// Line: 11
3
4
using
System
.
Runtime
.
CompilerServices
;
5
class
A
{
6
[
IndexerName
(
"Blah"
)]
7
int this
[
int
a
] {
8
get
{ return 1; }
9
}
10
11
int this
[
string
b
] {
12
get
{ return 2; }
13
}
14
}
15
16
17