bugDotGNU Portable.NET - Bugs: bug #2560, cscc flags an error when a class...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #2560: cscc flags an error when a class implements an interface through inheritance

Submitted by:  Marcus Urban <mathpup>
Submitted on:  Sat 15 Feb 2003 12:42:32 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Duplicate
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sat 15 Feb 2003 12:42:32 AM UTC, original submission:

Suppose that interface IFace declares a method

void Method();

and a class ClassA contains a definition

public void Method() { }

If ClassB is declared as

classB: classA, IFace

so that ClassB claims to implement IFace, cscc does not see that ClassB satisfies the interface by inheriting Method() from classA.

A test case is attached. The test case compiles successfully with Rotor's csc.

When IFace declares a method Method(), and ClassA has a method called Method(), and then ClassB extends ClassA and implements IFace, cscc claims that ClassB doesn't implement IFace.

Marcus Urban <mathpup>

 

Attached Files
file #300:  iface.cs added by mathpup (180B - text/x-csharp - Test case)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 15 Feb 2003 05:34:02 AM UTCt3rmin4t0rStatusNone=>(Error - Not Found)
Sat 15 Feb 2003 05:33:41 AM UTCt3rmin4t0rOpen/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1