Bug 13156 – `abstract` attribute should be disallowed in `interface`s

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-18T11:13:19Z
Last change time
2020-03-21T03:56:38Z
Keywords
accepts-invalid
Assigned to
No Owner
Creator
Denis Shelomovskii

Comments

Comment #0 by verylonglogin.reg — 2014-07-18T11:13:19Z
`abstract` attribute should be disallowed in `interface`s in any way as it does nothing except confuses people. This code should NOT compile: --- interface I { abstract void f(); // should be error abstract { void g(); } // should be error abstract: void h(); // should be error } ---
Comment #1 by b2.temp — 2017-03-08T14:03:36Z
interface I{void a();} static assert(__traits(isAbstractFunction, I.a));