[Mono-bugs] [Bug 23998] New - mcs should use String.Concat() instead of operator + with strings

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
29 Apr 2002 14:58:16 -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 lupus@ximian.com.

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

--- shadow/23998	Mon Apr 29 10:58:16 2002
+++ shadow/23998.tmp.19359	Mon Apr 29 10:58:16 2002
@@ -0,0 +1,29 @@
+Bug#: 23998
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lupus@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs should use String.Concat() instead of operator + with strings
+
+Simple test case:
+using System;
+
+class T {
+        static void Main() {
+                Console.WriteLine ("Time is: " + DateTime.Now);
+        }
+}
+
+csc turns this into WriteLine (Concat (...)).
+while mcs fails because it doesn't find op_Addition (string, DateTime).