[Mono-bugs] [Bug 77014][Wis] New - mcs failed to compile code snippet

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Dec 16 11:09:13 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 perraw at gmail.com.

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: rharinath at novell.com                            
+ReportedBy: perraw at gmail.com               
+QAContact: mono-bugs at ximian.com
+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
+    }
+}
+//---------------------------------------


More information about the mono-bugs mailing list