[Mono-bugs] [Bug 398638] New: CS0507 error message mentions wrong accessibility

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jun 9 14:18:04 EDT 2008


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


           Summary: CS0507 error message mentions wrong accessibility
           Product: Mono: Compilers
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: gert.driesen at pandora.be
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


To reproduce, compile the following code:

public class A
{
        static void Main ()
        {
        }

        public virtual void Execute ()
        {
        }
}

public class B : A
{
        protected override void Execute ()
        {
        }
}

Expected result:

test.cs(14,33): error CS0507: `B.Execute()': cannot change access modifiers
when overriding `public' inherited member `A.Execute()'

Actual result:

test.cs(14,33): error CS0507: `B.Execute()': cannot change access modifiers
when overriding `internal' inherited member `A.Execute()'


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