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 [EMAIL PROTECTED]

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

--- shadow/77014        2005-12-16 11:09:13.000000000 -0500
+++ shadow/77014.tmp.13065      2005-12-16 11:09:13.000000000 -0500
@@ -0,0 +1,41 @@
+Bug#: 77014
+Product: Mono: Compilers
+Version: 1.1
+OS: other
+OS Details: FC 4
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs failed to compile code snippet
+
+The following code compiles fine under VS2003.NET but gives syntax error 
+with something like "Set_Item does not take 3 parameters". This is using 
+mono svn from dec-15. If using the 1.1.10 release there will be another 
+error (think it was mono not supporting this).
+
+//---------------------------------------
+class MainClass
+{
+    string s = null;
+
+    public object this[ params object[] items ]
+    {
+        get { return null; }
+        set { s = null; }
+    }
+
+    static void Main(string[] args)
+    {
+        MainClass t = new MainClass();
+        t[ "foo", "doo" ] = null; // Compile error here
+    }
+}
+//---------------------------------------
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to