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-04-01 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs0154-2.cs
blob
76d8e93e45873ddb4144830ae71e62e5e911f475
1
// cs0154-2.cs: The property or indexer `B.Foo' cannot be used in this context because it lacks the `get' accessor
2
// Line: 13
3
// this is bug 55780.
4
5
class
A
{
6
public int
Foo { get { return 1; }
}
7
}
8
9
class
B
:
A
{
10
public new int
Foo { set { }
}
11
static void
Main
()
12
{
13
System
.
Console
.
WriteLine
(
new
B
().
Foo
);
14
}
15
}