www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13305] New: Inconsistency in empty class and interface parsing

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 puremagic.com
          Reporter: briancschott 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?

--
Aug 15 2014