зеркало из https://github.com/mono/mail-archives.git
107 строки
4.1 KiB
HTML
107 строки
4.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 60558][Nor] New - properties with only setters can not be overridden
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
|
|
<LINK REL="Previous" HREF="017768.html">
|
|
<LINK REL="Next" HREF="017772.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 60558][Nor] New - properties with only setters can not be overridden
|
|
</H1>
|
|
<B>bugzilla-daemon@bugzilla.ximian.com
|
|
</B>
|
|
<A HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com"
|
|
TITLE="[Mono-bugs] [Bug 60558][Nor] New - properties with only setters can not be overridden">bugzilla-daemon@bugzilla.ximian.com
|
|
</A><BR>
|
|
<I>Tue, 22 Jun 2004 09:55:50 -0400 (EDT)</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="017768.html">[Mono-bugs] [Bug 60550][Nor] Changed - System.Text.RegularExpressions triggers stack overflow
|
|
</A></li>
|
|
<LI> Next message: <A HREF="017772.html">[Mono-bugs] [Bug 60558][Nor] Changed - properties with only setters can not be overridden
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#17771">[ date ]</a>
|
|
<a href="thread.html#17771">[ thread ]</a>
|
|
<a href="subject.html#17771">[ subject ]</a>
|
|
<a href="author.html#17771">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>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 <A HREF="mailto:iain@mccoy.id.au.">iain@mccoy.id.au.</A>
|
|
|
|
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=60558">http://bugzilla.ximian.com/show_bug.cgi?id=60558</A>
|
|
|
|
--- 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: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
|
|
+ReportedBy: <A HREF="mailto:iain@mccoy.id.au">iain@mccoy.id.au</A>
|
|
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
|
|
+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.
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="017768.html">[Mono-bugs] [Bug 60550][Nor] Changed - System.Text.RegularExpressions triggers stack overflow
|
|
</A></li>
|
|
<LI> Next message: <A HREF="017772.html">[Mono-bugs] [Bug 60558][Nor] Changed - properties with only setters can not be overridden
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#17771">[ date ]</a>
|
|
<a href="thread.html#17771">[ thread ]</a>
|
|
<a href="subject.html#17771">[ subject ]</a>
|
|
<a href="author.html#17771">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|