[Mono-bugs] [Bug 481258] New: gmcs can not find extensions methods in partial classes

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Mar 2 19:42:48 EST 2009


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


           Summary: gmcs can not find extensions methods in partial
                    classes
    Classification: Mono
           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: ---


Blocks IronPython. Would be nice to have in 2.4.

Repro:

<<<<<<<<
using System;
using System.Collections.Generic;

namespace Foo {

    static partial class Extensions {
    }

    static partial class Extensions {

        public static string AsString (this IList<byte> bytes)
        {
            return "42";
        }
    }
}

namespace Bar {

    using Foo;

    class Program {

        static void Main ()
        {
            Console.WriteLine (Pan (new byte [0]));
        }

        internal static string Pan (byte [] bytes)
        {
            return bytes.AsString ();
        }
    }
}
<<<<<<<

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