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
(DISTFILES): Comment out a few missing files.
[mono-project.git]
/
mcs
/
errors
/
cs0646.cs
blob
78b7f4e3c777ba42747875e4093ff2ce41954f60
1
// cs0646.cs : Cannot specify the DefaultMember attribute on a type containing an indexer
2
// Line : 8
3
4
using
System
;
5
using
System
.
Reflection
;
6
7
[
DefaultMember
(
"Item"
)]
8
public class
Foo
{
9
10
string
bar
;
11
12
public static void
Main
()
13
{
14
Console
.
WriteLine
(
"foo"
);
15
}
16
17
string this
[
int
idx
] {
18
get
{
19
return
"foo"
;
20
}
21
set
{
22
bar
=
value
;
23
}
24
}
25
}
26