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

cs0108-6.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fc7db80f4240f5a0ec745b1388f2d4d33edd19ee (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' because it hides inherited member
// Line: 14
// Compiler options: -warnaserror -warn:2

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

class Derived : Base {
	public bool Prop = false;
}