[Mono-bugs] [Bug 385623] New: Access modifier prohibits compiling in gmsc.exe when csc. exe will compile

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 1 11:53:42 EDT 2008


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


           Summary: Access modifier prohibits compiling in gmsc.exe when
                    csc.exe will compile
           Product: Mono: Compilers
           Version: 1.9.0
          Platform: i586
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: derekd at omni-ts.com
         QAContact: mono-bugs at lists.ximian.com
                CC: stephane at omni-ts.com
          Found By: ---


Created an attachment (id=211760)
 --> (https://bugzilla.novell.com/attachment.cgi?id=211760)
sample program, protection level compiling example

Mono 1.9.1

The following condition will not compile in Mono C#, but will under .net:

* abstract base class (B) defines a property (P) as "internal"
* a class (C) derived from B redefines the same property as "protected"

Actual Result:
gmcs will not compile with the following error:
"C.P is not accessible due to its protection level"

csc.exe will compile by giving access to the base version (which is internal).



I have attached a sample program.


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