summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0108-5.cs
blob: 4b8ae09af86661a62318de10b5e262c51d6c8cd3 (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: 10
// Compiler options: -warnaserror -warn:2

class Base {
	public bool Prop = false;
}

class Derived : Base {
	public int Prop {
            get {
                return 0;
            }
        }
}