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