[Mono-bugs] [Bug 60558][Nor] New - properties with only setters can not be overridden

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 22 Jun 2004 09:55:50 -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 iain@mccoy.id.au.

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

--- shadow/60558	2004-06-22 09:55:50.000000000 -0400
+++ shadow/60558.tmp.20891	2004-06-22 09:55:50.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 60558
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: iain@mccoy.id.au               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: properties with only setters can not be overridden
+
+It seems that properties that only have setters can not be overridden from
+outside the assembly containing the declaring class. 
+
+To see this bug, compile attached files as follows:
+mcs -target:library base-setter.cs
+mcs -target:library -r:base-setter.dll derived-setter.cs
+
+We get the same bug even if the base class is not abstract. To verify, try
+these commands:
+mcs -target:library nonabstract-base-setter.cs
+mcs -target:library -r:nonabstract-base-setter.dll derived-setter.cs
+
+However, it works fine if the classes are compiled into the same assembly:
+mcs -target:library base-setter.cs derived-setter.cs
+
+It also works fine if there is only a getter defined:
+mcs -target:library base-getter.cs
+mcs -target:library -r:base-getter.dll derived-getter.cs
+
+And is okay if there is both a getter and a setter defined:
+mcs -target:library base-both.cs
+mcs -target:library -r:base-both.dll derived-both.cs
+
+I'm running mono and mcs from whatever was in anoncvs when I updated half
+an hour ago.