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

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

class Base {
	public bool Method () { return false; }
        public void Method (int a) {}
}

class Derived : Base {
        public void Method () {}
}