[Mono-bugs] [Bug 81931][Nor] New - operator ?? in array initialization causes compiler error CS1526
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Jun 22 12:52:24 EDT 2007
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 mg at faulpeltz.net.
http://bugzilla.ximian.com/show_bug.cgi?id=81931
--- shadow/81931 2007-06-22 12:52:24.000000000 -0400
+++ shadow/81931.tmp.13020 2007-06-22 12:52:24.000000000 -0400
@@ -0,0 +1,40 @@
+Bug#: 81931
+Product: Mono: Compilers
+Version: 1.2
+OS:
+OS Details: XP SP2
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: mg at faulpeltz.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: operator ?? in array initialization causes compiler error CS1526
+
+Description of Problem:
+When using the ?? operator i noticed that the compiler rejects the
+following statement:
+
+string foo = ...
+string[] test = new string[] { "first", "second", (foo ?? "isnull") };
+
+Steps to reproduce the problem:
+1. Just use the above expression
+
+Actual Results:
+
+Test.cs(23,21): error CS1526: A new expression requires () or [] after type
+
+Expected Results:
+
+Compiles ok (it does with csc)
+
+
+How often does this happen?
+
+always
More information about the mono-bugs
mailing list