Bug 2593 – "Overriding" interface functions in final classes fails

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-01-19T10:58:00Z
Last change time
2015-06-09T01:21:00Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
samukha

Comments

Comment #0 by samukha — 2009-01-19T10:58:29Z
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() {} }
Comment #1 by schveiguy — 2009-01-19T11:31:30Z
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 ***
Comment #2 by samukha — 2009-01-19T11:58:57Z
Yeh, it's the same. I overlooked your report.