[Mono-bugs] [Bug 35652][Wis] New - The string enumerator is a char and mcs compiles if a string is used
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
16 Dec 2002 00:21:34 -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 kiwnix@yahoo.es.
http://bugzilla.ximian.com/show_bug.cgi?id=35652
--- shadow/35652 Sun Dec 15 19:21:34 2002
+++ shadow/35652.tmp.20642 Sun Dec 15 19:21:34 2002
@@ -0,0 +1,46 @@
+Bug#: 35652
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: kiwnix@yahoo.es
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: The string enumerator is a char and mcs compiles if a string is used
+
+Description of Problem:
+The string enumerator is a char and mcs compiles if a string is used
+
+Actual Results:
+Compilation succeeded
+
+
+Expected Results:
+Error trying to convert from string to char (CS0030)
+
+
+Additional Information:
+Test:
+
+using System;
+
+
+class Y
+{
+ public static void Main()
+ {
+ string x="1 2 3 4 5";
+ foreach(string a in x)
+ {
+ Console.WriteLine("{0}",a);
+ }
+ }
+}