[Issue 3589] New: BaseClassList and InterfaceClasses rules are incorrect, missing ', '

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 7 07:36:03 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3589

           Summary: BaseClassList and InterfaceClasses rules are
                    incorrect, missing ','
           Product: D
           Version: 2.036
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: nobody at puremagic.com
        ReportedBy: jlquinn at optonline.net


--- Comment #0 from Jerry Quinn <jlquinn at optonline.net> 2009-12-07 07:36:03 PST ---
The existing definitions are

BaseClassList:
    : SuperClass
    : SuperClass InterfaceClasses
    : InterfaceClass

InterfaceClasses:
    InterfaceClass
    InterfaceClass InterfaceClasses


However, the rest of the docs and the compiler believe that the following is
correct:

class A {}
interface B {}
class C : A, B {}

So, the rules need to represent the commas:

BaseClassList:
    : SuperClass
    : SuperClass , InterfaceClasses
    : InterfaceClass

InterfaceClasses:
    InterfaceClass
    InterfaceClass , InterfaceClasses

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list