[Mono-bugs] [Bug 358374] New: CS0051 incorrectly reported on nested type within generic class

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Feb 3 07:05:56 EST 2008


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


           Summary: CS0051 incorrectly reported on nested type within
                    generic class
           Product: Mono: Compilers
           Version: 1.2.6
          Platform: i386
        OS/Version: Ubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: nicholas.blumhardt at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


The following code compiles correctly on Microsoft .NET but fails under Mono
1.2.6 gmcs:

// bug.cs
class C<T> {
 class D {}
 C(D d) {}
 public C() {}
}

$gmcs bug.cs -target:library
$bug.cs(4,2): error CS0051: Inconsistent accessibility: parameter type `C<T>.D'
is less accessible than method `C<T>.C(C<T>.D)'


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