[Issue 14270] New: final interface: attribute is ignored
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Mar 10 11:43:23 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14270
Issue ID: 14270
Summary: final interface: attribute is ignored
Product: D
Version: D2
Hardware: x86_64
OS: All
Status: NEW
Severity: minor
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: rswhite4 at gmail.com
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
--
More information about the Digitalmars-d-bugs
mailing list