summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0108-4.cs
blob: d8ba1ace13a09baa1f3933e713f7ff054441f771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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;
            }
        }
}