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

cs0108.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d9ce4f2a9a8cc70fe986dabc4a369e40f2693524 (plain)
1
2
3
4
5
6
7
8
9
10
11
// cs0108.cs: `Derived.F()' hides inherited member `Base.F()'. Use the new keyword if hiding was intended
// Line:
// Compiler options: -warnaserror -warn:2

class Base {
	public void F () {}
}

class Derived : Base {
	void F () {}
}