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-03-30 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs0154.cs
blob
686ee5ec143cc94334cb05161ad5dccf120153f3
1
// cs0154.cs: The property or indexer `A.name' cannot be used in this context because it lacks the `get' accessor
2
// Line: 21
3
4
public class
A
5
{
6
public string
name
7
{
8
set
9
{
10
name
=
value
;
11
}
12
}
13
}
14
15
public class
B
16
{
17
public static void
Main
()
18
{
19
A a
=
new
A
();
20
string
b
=
a
.
name
;
21
}
22
}
23