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
2009-07-20 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs0117-3.cs
blob
f486cf0d795939ba0854714456d91d49a7c1649b
1
// cs0117-3.cs: `A' does not contain a definition for `Foo'
2
// Line: 16
3
using
System
;
4
using
System
.
Runtime
.
CompilerServices
;
5
6
class
A
7
{
8
[
IndexerName
(
"Foo"
)]
9
public int this
[
int
index
] {
10
get
{ return index; }
11
set
{ ; }
12
}
13
14
static void
Test
(
A a
,
int value
)
15
{
16
a
.
Foo
=
value
;
17
}
18
19
public static void
Main
()
20
{
21
Test
(
new
A
(),
9
);
22
}
23
}