a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
16 lines
319 B
C#
16 lines
319 B
C#
// CS0108: `Derived.Prop' hides inherited member `Base.Prop'. Use the new keyword if hiding was intended
|
|
// Line: 14
|
|
// Compiler options: -warnaserror -warn:2
|
|
|
|
class Base {
|
|
public int Prop {
|
|
get {
|
|
return 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
class Derived : Base {
|
|
public bool Prop = false;
|
|
}
|