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


           Summary: gmcs have trouble compiling the convertion from generic
                    type extanding another one to its base interface
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
                CC: [EMAIL PROTECTED]
          Found By: ---


Repro:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;

public interface IFoo<T> : IEnumerable<T> {}

public static class FooRocks {

        public static IFoo<T> OrderBy<T, T2> (this IFoo<T> foo,
Expression<Func<T, T2>> expression)
        {
                return Process (foo, data => { return data.OrderBy
(expression.Compile ()); } );
        }

        public static IFoo<T> Process<T> (IFoo<T> foo,
                Func<IEnumerable<T>, IEnumerable<T>> processor)
        {
                processor (foo);

                return foo;
        }
}

class Repro {

        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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to