Summary: Allow attribute-overloading of an overridden method
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-02-17 11:34:45 PST ---
Also see:

class C{
    void foo(){}
class D : C{
    override void foo(){}
    void foo()const{}

Currently this is illegal. Both child class methods are assumed to override the
parent class method:

Error: multiple overrides of same function 

Only the first child class method should override the parent class method and
the second child class method would introduce an additional overload on const.

Similar observations apply to shared/immutable/inout functions.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to