[Mono-bugs] [Bug 53493][Nor] Changed - Appending string with "as" expression fails

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 29 Dec 2004 09:57:23 -0500 (EST)


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

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

--- shadow/53493	2004-05-29 09:09:37.000000000 -0400
+++ shadow/53493.tmp.18031	2004-12-29 09:57:23.000000000 -0500
@@ -1,13 +1,13 @@
 Bug#: 53493
 Product: Mono: Compilers
 Version: unspecified
 OS: unknown
 OS Details: Windows XP
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: NOTABUG
 Severity: Unknown
 Priority: Normal
 Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: pierre@opnieuw.com               
 QAContact: mono-bugs@ximian.com
@@ -53,6 +53,24 @@
 Additional Information:
 The expression is recognized if written as follows:
 string someString = (someObject as string) + " else";
 
 ------- Additional Comments From martin@ximian.com  2004-05-29 09:09 -------
 Resetting target milestone.
+
+------- Additional Comments From atsushi@ximian.com  2004-12-29 09:57 -------
+Yes, it must be evaluated as (someObject as string) + " else" .
+However, operator "+" never accepts relational-expression (like
+relational-expression "as" type) as its left operand, there is no
+possibility that "+" is evaluated legally.
+
+"+" operator is defined as
+
+additive-expression:
+    multiplicative-expression
+    additive-expression   +   multiplicative-expression
+    additive-expression   –   multiplicative-expression
+
+... and "someObject as string" is not additiveExpression.
+
+http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csspec/html/vclrfcsharpspec_7_2.asp
+http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csspec/html/vclrfcsharpspec_7_7.asp