Merge branch 'alexischr/nursery-canaries-managed-alloc'
[mono.git] / mcs / errors / cs0108-8.cs
1 // CS0108: `Derived.Method()' hides inherited member `Base.Method()'. Use the new keyword if hiding was intended
2 // Line: 11
3 // Compiler options: -warnaserror -warn:2
4
5 class Base {
6         public bool Method () { return false; }
7         public void Method (int a) {}
8 }
9
10 class Derived : Base {
11         public void Method () {}
12 }