[Mono-bugs] [Bug 56986][Nor] Changed - CS0111: property get_XXX and method set_XXX() are incorrectly allowed (and vice versa)
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 30 Aug 2004 06:30:32 -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 rharinath@novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=56986
--- shadow/56986 2004-08-27 13:51:50.000000000 -0400
+++ shadow/56986.tmp.25616 2004-08-30 06:30:32.000000000 -0400
@@ -1,22 +1,21 @@
Bug#: 56986
Product: Mono: Compilers
Version: unspecified
OS: unknown
OS Details:
-Status: RESOLVED
-Resolution: NOTABUG
+Status: REOPENED
+Resolution:
Severity: Unknown
Priority: Normal
Component: C#
AssignedTo: rharinath@novell.com
ReportedBy: atsushi@ximian.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
-Cc:
Summary: CS0111: property get_XXX and method set_XXX() are incorrectly allowed (and vice versa)
CSC does not allow such combination of
i) property XXX { get; } and method set_XXX()
ii) property XXX { set; } and method get_XXX()
@@ -73,6 +72,16 @@
------- Additional Comments From marek.safar@seznam.cz 2004-08-27 13:51 -------
It is Microsoft bug.
See
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=eb8d7ad4-208f-4205-bbee-7c293be4fe96
+
+------- Additional Comments From rharinath@novell.com 2004-08-30 06:30 -------
+According to the ECMA specification,
+
+ 17.2.7.1 Member Names Reserved for Properties
+
+ For a property P (§17.6) of type T, the following signatures are
+ reserved: T get_P(); void set_P(T value); Both signatures are
+ reserved, even if the property is read-only or write-only.
+