[Mono-bugs] [Bug 370577] 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 20 05:33:29 EDT 2008


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

User jbevain at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=370577#c2


Jb Evain <jbevain at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|RESOLVED                                        |REOPENED
         Resolution|FIXED                                           |




--- Comment #2 from Jb Evain <jbevain at novell.com>  2008-03-20 03:33:28 MST ---
I still have an issue with this, more complete 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 string Bar ()
        {
                return Foo (
                        str => str.ToLower ());
        }

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

The issue here is the Foo call in Bar. gmcs fails to find the appropriate Foo
method while csc does.


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