[Mono-bugs] [Bug 378419] New: Extension methods in parent namespace not found

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 9 12:17:16 EDT 2008


           Summary: Extension methods in parent namespace not found
           Product: Mono: Compilers
           Version: SVN
          Platform: x86
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: daniel.grunwald at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

gmcs does not find extension methods defined in classes in the parent
namespace. (see attached test case)
The test case compiles correctly when I put both classes in the same namespace.

Expected result:
  Attached program should compile without errors
Actual result:
  error CS1061: Type `System.Collections.Generic.IList<Outer.Inner.Test>' does
not contain a definition for `AddRange' and no extension method `AddRange' of
type `System.Collections.Generic.IList<Outer.Inner.Test>' could be found (are
you missing a using directive or an assembly reference?)

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