January 04, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7219

           Summary: valid overrides with type qualifiers rejected
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: timon.gehr@gmx.ch


--- Comment #0 from timon.gehr@gmx.ch 2012-01-04 09:30:04 PST ---
With DMD 2.057, all three overrides fail:

class A{
    void foo(immutable(int)[] x){}
    immutable(int)[] bar(immutable(int)[] x){return x;}
    immutable(int) qux(immutable(int) y){return y;}
}
class B: A{
    override void foo(const(int)[] x){}
    override inout(int)[] bar(inout(int)[] x){return x;}
    override int qux(int y){return y;}
}

The code should compile.

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