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

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=370577#c2


Jb Evain <[EMAIL PROTECTED]> changed:

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




--- Comment #2 from Jb Evain <[EMAIL PROTECTED]>  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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to