Bug 14270 – final interface: attribute is ignored

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2015-03-10T18:43:23Z
Last change time
2024-12-13T18:41:07Z
Assigned to
No Owner
Creator
rswhite4
Moved to GitHub: dmd#18956 →

Comments

Comment #0 by rswhite4 — 2015-03-10T18:43:23Z
This code works: ---- final interface Foo { } class Bar : Foo { } ---- But it shouldn't. It seems that the final attribute is ignored. So we have two choices: #1: Disallow the final attribute for interfaces #2: Recognize it correctly Since this code works (to emulate C++ namespaces, I think): --- final abstract class Quatz { } ---- and this is disallowed: ---- class Test : Quatz { } ---- We should go with #2
Comment #1 by robert.schadek — 2024-12-13T18:41:07Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18956 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB