dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bug #4196] cscc allows overrides when there is nothin


From: nobody
Subject: [Pnet-developers] [bug #4196] cscc allows overrides when there is nothing to override
Date: Sat, 05 Jul 2003 00:10:19 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826

=================== BUG #4196: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4196&group_id=353

Changes by: Rhys Weatherley <address@hidden>
Date: Sat 07/05/2003 at 04:10 (GMT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
Fix committed to CVS - 5 July 2003



=================== BUG #4196: FULL BUG SNAPSHOT ===================


Submitted by: tum                     Project: DotGNU Portable.NET          
Submitted on: Sat 07/05/2003 at 00:59
Category:  None                       Severity:  5 - Major                  
Bug Group:  None                      Resolution:  Fixed                    
Assigned to:  None                    Status:  Closed                       

Summary:  cscc allows overrides when there is nothing to override

Original Submission:  The following should give a compiler error.  You can't 
override a method that doesn't exist.  You should also not be able to override 
a method that hasn't been declared as "virtual".

using System;
using System.Collections;

public class Test
{
        public class A
        {
        }

        public class B
                : A
        {
                public override IEnumerator GetEnumerator()
                {
                        return null;
                }
        }

        public static void Main()
        {
        }
}



Follow-up Comments
*******************

-------------------------------------------------------
Date: Sat 07/05/2003 at 04:10       By: rweather
Fix committed to CVS - 5 July 2003


CC list is empty


No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4196&group_id=353

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]