summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0108-8.cs
blob: 38cfe450ddc9858b46e843f8f22c74e104b5e9ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// CS0108: `Derived.Method()' hides inherited member `Base.Method()'. Use the new keyword if hiding was intended
// 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 () {}
}