http://bugzilla.novell.com/show_bug.cgi?id=580887
http://bugzilla.novell.com/show_bug.cgi?id=580887#c0 Summary: fails to compile array initialization expression Classification: Mono Product: Mono: Compilers Version: SVN Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: C# AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Sample code: using System; class C { public static readonly Action<object>[] Items = { (a) => { int timeoutMilliseconds = 0; }, }; } results in: > gmcs -target:library test.cs test.cs(4,49): error CS0622: Can only use array initializer expressions to assign to array types. Try using a new expression instead Note that removing the variable declaration makes it compile. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
