[Mono-bugs] [Bug 355251] New: Bug with type inference on generic methods with constraints

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jan 22 06:40:50 EST 2008


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: msafar at novell.com
        ReportedBy: jbevain at novell.com
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list