[Mono-bugs] [Bug 22619] New - Inappropriate "does not hide an inherited member" warning
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
27 Mar 2002 17:28:23 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by bryan@alphora.com.
http://bugzilla.ximian.com/show_bug.cgi?id=22619
--- shadow/22619 Wed Mar 27 12:28:23 2002
+++ shadow/22619.tmp.12841 Wed Mar 27 12:28:23 2002
@@ -0,0 +1,57 @@
+Bug#: 22619
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details: Mono 0.10 under Winders
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bryan@alphora.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Inappropriate "does not hide an inherited member" warning
+
+Description of Problem:
+When desending from a class in the system library it appears that
+the "new" method checking doesn't look at the right base class and throws
+warning CS109.
+
+
+
+Steps to reproduce the problem:
+C:\src\Dataphor\Base>mcs newkeywordtest.cs
+.\newkeywordtest.cs(8) warning CS109: The member `List.RemoveAt' does not
+hide an inherited member. The keyword new is
+not required
+error CS5001: Program .\newkeywordtest.exe does not have an entry point
+defined
+
+C:\src\Dataphor\Base>csc newkeywordtest.cs
+Microsoft (R) Visual C# .NET Compiler version 7.00.9466
+for Microsoft (R) .NET Framework version 1.0.3705
+Copyright (C) Microsoft Corporation 2001. All rights reserved.
+
+error CS5001: Program 'newkeywordtest.exe' does not have an entry point
+defined
+
+C:\src\Dataphor\Base>
+
+
+Test Case:
+using System;
+using System.Collections;
+
+public class List : ArrayList
+{
+ public List() : base() {}
+
+ public new virtual object RemoveAt(int AIndex)
+ {
+ return null;
+ }
+}