a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
16 lines
263 B
C#
16 lines
263 B
C#
// CS0546: `B.Prop': cannot override because `A.Prop' does not have accessible set accessor
|
|
// Line: 13
|
|
|
|
public class A
|
|
{
|
|
public virtual string Prop {
|
|
get; private set;
|
|
}
|
|
}
|
|
|
|
public class B : A
|
|
{
|
|
sealed override public string Prop {
|
|
get { return ""; }
|
|
}
|
|
} |