a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
13 lines
321 B
C#
13 lines
321 B
C#
// 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 () {}
|
|
}
|