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: Fri, 04 Jul 2003 20:59:13 -0400
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; MyIE2; .NET CLR 1.0.3705; .NET CLR 1.1.4322)

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

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:  None                     
Assigned to:  None                    Status:  Open                         

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()
        {
        }
}





No Followups Have Been Posted


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]