[Mono-bugs] [Bug 359617] New: gmcs confuses generic types when generating anonymous methods

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 7 11:07:57 EST 2008


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


           Summary: gmcs confuses generic types when generating anonymous
                    methods
           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
                CC: rodrigobamboo at gmail.com
          Found By: ---


Repro:

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

class Repro {

        class Runner<T> {
                public Runner(Action<T> action, T t) {}
        }

        static void AssertFoo<T> (IList<T> list)
        {
                new Runner<int> (delegate {
                        foreach (T item in list) {}
                }, 42);
        }

        static void Main ()
        {
        }
}
--


-- 
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