a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
18 lines
298 B
C#
18 lines
298 B
C#
// CS0507: `DerivedClass.Message': cannot change access modifiers when overriding `public' inherited member `BaseClass.Message'
|
|
// Line: 12
|
|
|
|
class BaseClass {
|
|
public virtual string Message {
|
|
set {
|
|
}
|
|
}
|
|
}
|
|
|
|
class DerivedClass : BaseClass {
|
|
protected override string Message {
|
|
set {
|
|
}
|
|
}
|
|
}
|
|
|