[Mono-bugs] [Bug 76824][Wis] New - incorrect error message for property get without assignment

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Nov 25 11:18:36 EST 2005


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 lupus at ximian.com.

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

--- shadow/76824	2005-11-25 11:18:36.000000000 -0500
+++ shadow/76824.tmp.30622	2005-11-25 11:18:36.000000000 -0500
@@ -0,0 +1,32 @@
+Bug#: 76824
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: lupus at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: incorrect error message for property get without assignment
+
+This test program:
+class T {
+        static string XX {
+                get {return "";}
+        }
+        static void Main () {
+                T.XX;
+        }
+}
+gives the incorrect (and weird) error message:
+syntax error, got token `SEMICOLON'
+test-get-prop.cs(6,7): error CS1002: Expecting `;'
+
+This code used to produce the correct message.


More information about the mono-bugs mailing list