www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2593] New: "Overriding" interface functions in final classes fails

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2593

           Summary: "Overriding" interface functions in final classes fails
           Product: D
           Version: 2.023
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: samukha voliacable.com


interface I
{
  void foo();
}

// this compiles
class A : I
{
  override void foo() {}
}

// this fails with "function test.B.foo does not override any function"
final class B : I
{
  override void foo() {}
}


-- 
Jan 19 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2593


schveiguy yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




------- Comment #1 from schveiguy yahoo.com  2009-01-19 11:31 -------
Same general description, just you marked the class as final, I marked the
method as final.

*** This bug has been marked as a duplicate of 2524 ***


-- 
Jan 19 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2593





------- Comment #2 from samukha voliacable.com  2009-01-19 11:58 -------
Yeh, it's the same. I overlooked your report. 


-- 
Jan 19 2009