blob: e91276f94178c911140f0755bc8a364e4ab52000 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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;
}
|