Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0108-4.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8f2f5eeea92481c4d837555cc5202a180c5364e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// cs0108.cs: The new keyword is required on 'Derived.Prop(int)' because it hides inherited member
// Line: 10
// Compiler options: -warnaserror -warn:2

class Base {
	public void Prop (int a) {}
}

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