www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13156] New: `abstract` attribute should be disallowed in

https://issues.dlang.org/show_bug.cgi?id=13156

          Issue ID: 13156
           Summary: `abstract` attribute should be disallowed in
                    `interface`s
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: verylonglogin.reg gmail.com

`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
}
---

--
Jul 18 2014