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: [email protected]
          Reporter: [email protected]

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?

--

Reply via email to