a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
15 lines
313 B
C#
15 lines
313 B
C#
// CS0154: The property or indexer `B.Foo' cannot be used in this context because it lacks the `get' accessor
|
|
// Line: 13
|
|
// this is bug 55780.
|
|
|
|
class A {
|
|
public int Foo { get { return 1; } }
|
|
}
|
|
|
|
class B : A {
|
|
public new int Foo { set { } }
|
|
static void Main ()
|
|
{
|
|
System.Console.WriteLine (new B ().Foo);
|
|
}
|
|
} |