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: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to