[Mono-bugs] [Bug 375262] New: gmcs should not emit calls to CharEnumerator

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Mar 30 11:07:03 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=375262


           Summary: gmcs should not emit calls to CharEnumerator
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: jbevain at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Currently, for code like:

--
using System;
using System.Collections.Generic;

class Test {
        static void Main (string [] args)
        {
                string s = args [0];
                foreach (char c in s)
                        Console.WriteLine (c);
        }
}
--

gmcs emits calls to System.CharEnumerator, while it should be transparent, and
use calls to IEnumerable<char>.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list