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


           Summary: Bug with type inference on generic methods with
                    constraints
           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]
          Found By: ---


Repro:

using System;

class Foo {}

class Repro {

        static void Main ()
        {
                Bar (new Foo ());
        }

        static void Bar<TFoo> (TFoo foo) where TFoo : Foo
        {
                Baz (foo, Gazonk);
        }

        static void Baz<T> (T t, Action<T> a)
        {
                a (t);
        }

        static void Gazonk (Foo f)
        {
        }
}


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