www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones

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

           Summary: dmd.170 fails to mark final methods as implementations
                    of abstract ones
           Product: D
           Version: 0.170
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: h3r3tic mat.uni.torun.pl


interface Foo {
        void foo();
}

class Bar : Foo {
        final void foo() {
        }
}

void main() {
        new Bar;
}


// final170.d(5): class final170.Bar interface function Foo.foo isn't
implemented


-- 
Oct 17 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=440


benoit tionex.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P1





I increased the priority of this bug, because it breaks existing code. 


-- 
Oct 17 2006
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=440


benoit tionex.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2





P2 was correct, sorry


-- 
Oct 17 2006
prev sibling next sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail puremagic.com schrieb am 2006-10-17:
 http://d.puremagic.com/issues/show_bug.cgi?id=440
 interface Foo {
         void foo();
 }

 class Bar : Foo {
         final void foo() {
         }
 }

 void main() {
         new Bar;
 }


 // final170.d(5): class final170.Bar interface function Foo.foo isn't
 implemented
Added to DStress as http://dstress.kuehne.cn/run/f/final_12_A.d http://dstress.kuehne.cn/run/f/final_12_B.d http://dstress.kuehne.cn/nocompile/f/final_12_C.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFOiRULK5blCcjpWoRAvzSAJ0aiNXrZKVHfvE7NiWQZa9XZGTZEgCfTelZ 4ic1ckmxN6So6ERdma7PV4E= =T/kO -----END PGP SIGNATURE-----
Oct 21 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=440


bugzilla digitalmars.com changed:

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





Works with DMD 0.174.


-- 
Nov 21 2006