[Mono-bugs] [Bug 370577] New: gmcs is confused by generics methods with the same name when one returns void

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Mar 13 14:56:42 EDT 2008


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


           Summary: gmcs is confused by generics methods with the same name
                    when one returns void
           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 Program {

        static void Foo (Action<string> a)
        {
                a ("action");
        }

        static T Foo<T> (Func<string, T> f)
        {
                return f ("function");
        }

        static void Main ()
        {
                var str = Foo (s => s);
                Console.WriteLine (str);
                Foo (s => Console.WriteLine (s));
        }
}


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