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

           Summary: Linker issue ?
           Product: Moonlight
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: engine
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]
          Found By: ---


this code snippet works fine if compiled with gmcs, but throws if compiled with
smcs :
Unhandled Exception: System.MissingFieldException: Field '.Enumerator.si' not
found.
  at System.Collections.Generic.LinkedList`1[System.String].GetEnumerator ()
[0x00000] 
  at Test.Main () [0x00000]


using System;
using System.Collections.Generic;

public class Test
{
        public static void Main ()
        {
                LinkedList<string> ll = new LinkedList<string> ();
                ll.AddLast ("hello");
                ll.AddLast (",");
                ll.AddLast (" ");
                ll.AddLast ("world");
                ll.AddLast ("!");

                foreach (string s in ll)
                {
                        Console.Write (s);
                }
                Console.WriteLine ();
        }
}


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to