[Mono-bugs] [Bug 472805] gmcs incorrectly reports ambiguity with extension methods

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 10 16:12:55 EST 2009


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

User ekot at narod.ru added comment
https://bugzilla.novell.com/show_bug.cgi?id=472805#c1


Eugene Kotlyarov <ekot at narod.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ekot at narod.ru




--- Comment #1 from Eugene Kotlyarov <ekot at narod.ru>  2009-02-10 14:12:54 MST ---
Just found this bug too, want to add that this doesn't happen in 2.2 only in
2.4.*.
And here is little additional testcase

using System;
using System.Linq.Expressions;
using test;
namespace test
{
    internal static class TypeExtensions
    {
        public static bool IsNullable(this Type t)
        {
            return true;
        }
    }
}
namespace testmono
{
    class MainClass
    {
        public static void Main(string[] args)
        {
            string s = "";
            if (s.GetType().IsNullable()) {
               Console.WriteLine("aaa");
            }
        }
    }
}

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list