[Mono-bugs] [Bug 82593][Blo] New - Error compiling array properties

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Aug 25 08:37:00 EDT 2007


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 di at ufgo.org.

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

--- shadow/82593	2007-08-25 08:37:00.000000000 -0400
+++ shadow/82593.tmp.10844	2007-08-25 08:37:00.000000000 -0400
@@ -0,0 +1,62 @@
+Bug#: 82593
+Product: Mono: Compilers
+Version: 1.2
+OS: Windows XP (Cygwin)
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: di at ufgo.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Error compiling array properties
+
+Description of Problem:
+
+Mono compiler is not able to compile array properties
+Code that produce an error:
+  D.set_Items(0, D.get_Items(1));
+
+Program.cs(12,30): error CS0571: `Lib1.DummyClass.this[int].get': cannot 
+explicitly call operator or accessor
+
+Property defined as follows:
+
+public int Items[int Index]
+{
+    get
+    {
+        return this.GetItems(Index);
+    }
+    set
+    {
+        this.SetItems(Index, value);
+    }
+}
+
+
+Steps to reproduce the problem:
+1. Get the attached .zip file and unpack it.
+2. run "make_all.bat"
+
+Actual Results:
+Program.cs(12,30): error CS0571: `Lib1.DummyClass.this[int].get': cannot 
+explicitly call operator or accessor
+
+
+Expected Results:
+сsc compiler compiles ok this code.
+
+How often does this happen? 
+Always.
+
+Additional Information:
+
+Mono 1.2.4
+Mono C# compiler version 1.2.4.0
+Windows XP SP2


More information about the mono-bugs mailing list