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
Reenable a bunch of disabled iOS Mono SDKs test suites (#19301)
[mono-project.git]
/
mcs
/
errors
/
cs0272-2.cs
blob
7221f71ea65d158c9ee6eddd6722c4c650b4be61
1
// CS0272: The property or indexer `C.this[string]' cannot be used in this context because the set accessor is inaccessible
2
// Line: 13
3
4
class
C
5
{
6
public int this
[
string
i
]
{ private set { }
get
{ return 1; }
}
7
}
8
9
public class
Test
10
{
11
void
Foo
()
12
{
C c
=
new
C
();
13
c
[
""
] =
9
;
14
}
15
}