a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
24 lines
382 B
C#
24 lines
382 B
C#
// CS0507: `DerivedClass.Message.set': cannot change access modifiers when overriding `protected' inherited member `BaseClass.Message.set'
|
|
// Line: 15
|
|
|
|
class BaseClass {
|
|
public virtual string Message {
|
|
get {
|
|
return "";
|
|
}
|
|
protected set {
|
|
}
|
|
}
|
|
}
|
|
|
|
class DerivedClass : BaseClass {
|
|
public override string Message {
|
|
get {
|
|
return "";
|
|
}
|
|
set {
|
|
}
|
|
}
|
|
}
|
|
|