24 lines
382 B
C#
Raw Normal View History

// 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 {
}
}
}