[Mono-bugs] [Bug 55382][Nor] Changed - MSC reports invalid warning CS0109 when hiding inherited member of other type

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 4 Aug 2004 15:46:37 -0400 (EDT)


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 gert.driesen@pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=55382

--- shadow/55382	2004-08-04 14:35:40.000000000 -0400
+++ shadow/55382.tmp.31077	2004-08-04 15:46:37.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 55382
 Product: Mono: Compilers
 Version: unspecified
 OS: unknown
 OS Details: 
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: C#
 AssignedTo: marek.safar@seznam.cz                            
 ReportedBy: gert.driesen@pandora.be               
 QAContact: mono-bugs@ximian.com
@@ -59,6 +59,32 @@
 ------- Additional Comments From miguel@ximian.com  2004-08-04 14:35 -------
 The test you posted does not build.
 
 That being said, it seems like Marek fixed this on CVS, am going
 to close the bug, but if it is not fixed, please post a 
 test case that is known to compile on MS.NEt compiler.
+
+------- Additional Comments From gert.driesen@pandora.be  2004-08-04 15:46 -------
+Miguel, this issue is not fixed in yet (using Mono HEAD).
+
+You can reproduce this issue using this :
+
+namespace MonoInheritance {
+    public class NewBase {
+        public void NewPropertySNOKOM(int n) {
+        }
+    }
+
+    public class NewDerived : NewBase {
+        public new int NewPropertySNOKOM {
+            get { return 0; }
+            set { }
+        }
+    }
+}
+
+This code compiles without warning on csc , while mcs reports the 
+following warning :
+
+test.cs(10) warning CS0109: The member 
+`MonoInheritance.NewDerived.NewPropertySNOKOM' does not hide an 
+inherited member.  The keyword new is not required