[Mono-bugs] [Bug 30101][Nor] Changed - mcs does fail on 'params'

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
12 Sep 2002 14:06:11 -0000


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 gonzalo@ximian.com.

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

--- shadow/30101	Tue Sep 10 07:57:36 2002
+++ shadow/30101.tmp.23868	Thu Sep 12 10:06:11 2002
@@ -2,22 +2,21 @@
 Product: Mono/Class Libraries
 Version: unspecified
 OS: other
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
-Priority: Wishlist
+Severity: Unknown
+Priority: Normal
 Component: System
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: duncan@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
-Summary: System.CodeDom may not be complete
+Summary: mcs does fail on 'params'
 
 Even though CorCompare shows that we have all of System.CodeDom
 implemented, this example from the Quickstart fails to compile. The error is:
 
 listbuilder.cs(88) error CS1502: The best overloaded match for method 'int
 Add (System.CodeDom.CodeTypeReference)' has some invalid arguments
@@ -37,7 +36,42 @@
 constructor for this argument list
 Compilation failed: 7 error(s), 0 warnings
 
 ------- Additional Comments From duncan@ximian.com  2002-09-10 07:57 -------
 Created an attachment (id=2230)
 Example from quickstart tutorial
+
+
+------- Additional Comments From gonzalo@ximian.com  2002-09-12 10:06 -------
+The add method is already there and the fail seems to be a mcs problem
+when converting from CodeArgumentReferenceExpression to 'params
+CodeExpression []'.
+
+Here is a new test case that narrow down the ammount of code to look at:
+using System;
+using System.CodeDom;
+
+public class ListBuilder
+{
+        public static void Main (String [] args)
+        {
+                CodeFieldReferenceExpression tres = new
+CodeFieldReferenceExpression (new CodeThisReferenceExp
+ression(),"List");
+                CodeMethodInvokeExpression dos = new
+CodeMethodInvokeExpression (tres, "Add", new CodeArgument
+ReferenceExpression  ("value"));
+        }
+}
+
+And the error from mcs is:
+bug30101.cs(9) error CS1502: The best overloaded match for method '
+.ctor (System.CodeDom.CodeExpression, string,
+System.CodeDom.CodeExpression[])' has some invalid arguments
+bug30101.cs(9) error CS1503: Argument 3: Cannot convert from
+'System.CodeDom.CodeArgumentReferenceExpression'
+to 'System.CodeDom.CodeExpression[]'
+bug30101.cs(9) error CS1501: New invocation: Can not find a
+constructor for this argument list
+Compilation failed: 3 error(s), 0 warnings
+