Bug 440 – dmd.170 fails to mark final methods as implementations of abstract ones

Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-10-17T07:01:00Z
Last change time
2014-02-15T13:21:29Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
h3r3tic

Comments

Comment #0 by h3r3tic — 2006-10-17T07:01:29Z
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
Comment #1 by benoit — 2006-10-17T10:21:27Z
I increased the priority of this bug, because it breaks existing code.
Comment #2 by benoit — 2006-10-17T10:26:57Z
P2 was correct, sorry
Comment #3 by thomas-dloop — 2006-10-21T08:40:34Z
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [email protected] 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-----
Comment #4 by bugzilla — 2006-11-21T23:05:30Z
Works with DMD 0.174.