Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git] / mcs / errors / cs0109-8.cs
blob5f5a545d58a177fb2ffc3c398fd2d89e358e8a1c
1 // CS0109: The member `DerivedClass.get_Value()' does not hide an inherited member. The new keyword is not required
2 // Line: 14
3 // Compiler options: -warnaserror -warn:4
5 class BaseClass {
6 protected virtual int Value {
7 get {
8 return 0;
10 set { }
14 abstract class DerivedClass: BaseClass {
15 protected new int get_Value () {
16 return 1;
21 class ErrorClass: DerivedClass {
22 protected override int Value {
23 get {
24 return 0;
26 set { }
29 static void Main () {}