[Mono-bugs] [Bug 77401][Nor] New - init context lost with comma-separated initializations

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jan 30 06:54:19 EST 2006

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.


--- shadow/77401	2006-01-30 06:54:19.000000000 -0500
+++ shadow/77401.tmp.26858	2006-01-30 06:54:19.000000000 -0500
@@ -0,0 +1,30 @@
+Bug#: 77401
+Product: Mono: Compilers
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: lupus at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: init context lost with comma-separated initializations
+The following test doesn't compile with mcs:
+class T {
+	static int[] a = {1,2},
+		b = {3, 4};
+	static void Main () {}
+The error is:
+array-init.cs(5,3): error CS0622: Can only use array initializer
+expressions to assign to array types. Try using a new expression instead.
+It looks like the initialization context info is lost somewhere.
+This prevents iTextSharp from compiling.

More information about the mono-bugs mailing list