[Issue 13305] New: Inconsistency in empty class and interface parsing

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Aug 15 23:56:54 PDT 2014


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

          Issue ID: 13305
           Summary: Inconsistency in empty class and interface parsing
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: briancschott at gmail.com

interface A;
class B;
interface C {}
class D {}
interface E : C; // Fails
class F : C; // Fails
interface G : C {} // Passes
class H : C {} // Passes

Interfaces and classes are only allowed to have ";" as their body if they do
not inherit from another interface. Why is this?

--


More information about the Digitalmars-d-bugs mailing list